/* 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
}
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);
}
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;
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);