From c5c03ac5563961cbcbcb2a1cc3e8963d0c49e154 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 8 May 2009 02:14:50 +0000 Subject: Fixes for non-ASCII platforms by David McCreedy --- tests/libtest/lib547.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests/libtest/lib547.c') diff --git a/tests/libtest/lib547.c b/tests/libtest/lib547.c index 8a1070f70..a8f73eb5f 100644 --- a/tests/libtest/lib547.c +++ b/tests/libtest/lib547.c @@ -16,7 +16,14 @@ #include "memdebug.h" -#define UPLOADTHIS "this is the blurb we want to upload\n" +#ifdef CURL_DOES_CONVERSIONS + /* ASCII representation with escape sequences for non-ASCII platforms */ +# define UPLOADTHIS "\x74\x68\x69\x73\x20\x69\x73\x20\x74\x68\x65\x20\x62" \ + "\x6c\x75\x72\x62\x20\x77\x65\x20\x77\x61\x6e\x74\x20" \ + "\x74\x6f\x20\x75\x70\x6c\x6f\x61\x64\x0a" +#else +# define UPLOADTHIS "this is the blurb we want to upload\n" +#endif #ifndef LIB548 static size_t readcallback(void *ptr, -- cgit v1.2.3