build-aux/ylwrap: restore x bit
[gnulib.git] / tests / unigbrk / test-uc-is-grapheme-break.c
index 859db49..69f7488 100644 (file)
@@ -1,5 +1,5 @@
 /* Grapheme cluster break function test.
-   Copyright (C) 2010-2011 Free Software Foundation, Inc.
+   Copyright (C) 2010-2012 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
@@ -109,8 +109,8 @@ main (int argc, char *argv[])
             }
           else
             {
-              fprintf (stderr, "%s:%d.%d: syntax error expecting `÷' or `÷'\n",
-                       filename, lineno, p - line + 1);
+              fprintf (stderr, "%s:%d.%d: syntax error expecting '÷' or '×'\n",
+                       filename, lineno, (int) (p - line + 1));
               exit (1);
             }
 
@@ -124,9 +124,9 @@ main (int argc, char *argv[])
 
               if (sscanf (p, "%x%n", &next_int, &n) != 1)
                 {
-                  fprintf (stderr, "%s:%d.%d: syntax error at `%s' expecting "
-                           "hexadecimal Unicode code point number\n",
-                           filename, lineno, p - line + 1, p);
+                  fprintf (stderr, "%s:%d.%d: syntax error at '%s' "
+                           "expecting hexadecimal Unicode code point number\n",
+                           filename, lineno, (int) (p - line + 1), p);
                   exit (1);
                 }
               p += n;
@@ -134,7 +134,7 @@ main (int argc, char *argv[])
               next = next_int;
             }
 
-          if (uc_is_grapheme_cluster_break (prev, next) != should_break)
+          if (uc_is_grapheme_break (prev, next) != should_break)
             {
               int prev_gbp = uc_graphemeclusterbreak_property (prev);
               int next_gbp = uc_graphemeclusterbreak_property (next);