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/lib544.c | |
parent | 6ca321ca75c8f8ad6808bcfd786ad8e84c790aff (diff) |
Fixes for non-ASCII platforms by David McCreedy
Diffstat (limited to 'tests/libtest/lib544.c')
-rw-r--r-- | tests/libtest/lib544.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/libtest/lib544.c b/tests/libtest/lib544.c index 756291972..b17e64af2 100644 --- a/tests/libtest/lib544.c +++ b/tests/libtest/lib544.c @@ -13,7 +13,14 @@ #include "memdebug.h" static char teststring[] = +#ifdef CURL_DOES_CONVERSIONS + /* ASCII representation with escape sequences for non-ASCII platforms */ + "\x54\x68\x69\x73\x00\x20\x69\x73\x20\x74\x65\x73\x74\x20\x62\x69\x6e\x61" + "\x72\x79\x20\x64\x61\x74\x61\x20\x77\x69\x74\x68\x20\x61\x6e\x20\x65\x6d" + "\x62\x65\x64\x64\x65\x64\x20\x4e\x55\x4c\x20\x62\x79\x74\x65\x0a"; +#else "This\0 is test binary data with an embedded NUL byte\n"; +#endif int test(char *URL) |