diff options
author | Yang Tse <yangsita@gmail.com> | 2009-05-08 02:14:50 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2009-05-08 02:14:50 +0000 |
commit | c5c03ac5563961cbcbcb2a1cc3e8963d0c49e154 (patch) | |
tree | c013ab93163eb8640b52a0385b9d3a0c1706417b /tests/libtest/lib547.c | |
parent | 6ca321ca75c8f8ad6808bcfd786ad8e84c790aff (diff) |
Fixes for non-ASCII platforms by David McCreedy
Diffstat (limited to 'tests/libtest/lib547.c')
-rw-r--r-- | tests/libtest/lib547.c | 9 |
1 files changed, 8 insertions, 1 deletions
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, |