Mercurial > hg > octave-lyh > gnulib-hg
changeset 10930:eb2da7509b6d
Execute the main loop twice, as intended.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 21 Dec 2008 13:29:51 +0100 |
parents | a4794db249f8 |
children | 33d6ff26aa7b |
files | ChangeLog tests/test-mbsrtowcs.c |
diffstat | 2 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-12-21 Bruno Haible <bruno@clisp.org> + + * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1. + 2008-12-21 Bruno Haible <bruno@clisp.org> Update doc for AIX.
--- a/tests/test-mbsrtowcs.c +++ b/tests/test-mbsrtowcs.c @@ -141,7 +141,7 @@ ASSERT (buf[1] == (wchar_t) 0xBADFACE); ASSERT (mbsinit (&state)); } - return 0; + break; case '2': /* Locale encoding is UTF-8. */ @@ -187,7 +187,7 @@ ASSERT (buf[2] == (wchar_t) 0xBADFACE); ASSERT (mbsinit (&state)); } - return 0; + break; case '3': /* Locale encoding is EUC-JP. */ @@ -240,7 +240,7 @@ ASSERT (buf[2] == (wchar_t) 0xBADFACE); ASSERT (mbsinit (&state)); } - return 0; + break; case '4': /* Locale encoding is GB18030. */ @@ -286,7 +286,7 @@ ASSERT (buf[2] == (wchar_t) 0xBADFACE); ASSERT (mbsinit (&state)); } - return 0; + break; default: return 1;