Avoid use of hexadecimal escapes.
authorBruno Haible <bruno@clisp.org>
Sat, 1 Jan 2011 11:53:47 +0000 (12:53 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 1 Jan 2011 11:53:47 +0000 (12:53 +0100)
* tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
instead of hexadecimal escapes.

ChangeLog
tests/unigbrk/test-uc-is-grapheme-break.c

index 12e5075..5e3a246 100644 (file)
--- 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
index c0aa0eb..859db49 100644 (file)
@@ -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;