From 579e321712b6b9cb8d96978fa10487c8d7e5da4a Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 1 Jan 2011 12:53:47 +0100 Subject: [PATCH] Avoid use of hexadecimal escapes. * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes instead of hexadecimal escapes. --- ChangeLog | 6 ++++++ tests/unigbrk/test-uc-is-grapheme-break.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) 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; -- 2.11.0