From: Bruno Haible Date: Sat, 1 Jan 2011 11:53:47 +0000 (+0100) Subject: Avoid use of hexadecimal escapes. X-Git-Tag: v0.1~3413 X-Git-Url: https://erislabs.net/gitweb/?a=commitdiff_plain;ds=sidebyside;h=579e321712b6b9cb8d96978fa10487c8d7e5da4a;hp=d3f62c9484504ddad1ae4e01bf9b70ffba0609dd;p=gnulib.git Avoid use of hexadecimal escapes. * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes instead of hexadecimal escapes. --- diff --git a/ChangeLog b/ChangeLog index 12e5075af..5e3a2467c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-01-01 Bruno Haible + + 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 maint: new rule to update copyright year ranges diff --git a/tests/unigbrk/test-uc-is-grapheme-break.c b/tests/unigbrk/test-uc-is-grapheme-break.c index c0aa0ebc0..859db4928 100644 --- 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 @@ main (int argc, char *argv[]) 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;