Mercurial > hg > octave-lyh > gnulib-hg
changeset 14074:62dc6e99e7fa
Avoid use of hexadecimal escapes.
* tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
instead of hexadecimal escapes.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 01 Jan 2011 12:53:47 +0100 |
parents | 79c76e53668c |
children | ca165ba0f722 |
files | ChangeLog tests/unigbrk/test-uc-is-grapheme-break.c |
diffstat | 2 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-01-01 Bruno Haible <bruno@clisp.org> + + Avoid use of hexadecimal escapes. + * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes + instead of hexadecimal escapes. + 2011-01-01 Jim Meyering <meyering@redhat.com> maint: new rule to update copyright year ranges
--- a/tests/unigbrk/test-uc-is-grapheme-break.c +++ b/tests/unigbrk/test-uc-is-grapheme-break.c @@ -1,5 +1,5 @@ /* Grapheme cluster break function test. - Copyright (C) 2010 Free Software Foundation, Inc. + Copyright (C) 2010-2011 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published @@ -97,12 +97,12 @@ ucs4_t next; p += strspn (p, " \t\r\n"); - if (!strncmp (p, "\xc3\xb7" /* ÷ */, 2)) + if (!strncmp (p, "\303\267" /* ÷ */, 2)) { should_break = true; p += 2; } - else if (!strncmp (p, "\xc3\x97" /* × */, 2)) + else if (!strncmp (p, "\303\227" /* × */, 2)) { should_break = false; p += 2;