From 14d5391f9be3b8fc538fa31303c1c9ceac23cd1a Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 28 Nov 2000 13:57:45 +0000 Subject: Update. 2000-11-28 Ulrich Drepper * catgets/gencat.c (normalize_line): Take extra parameter with escape character. Change callers. (open_conversion): Determine mapping of 0x5c as wchar_t value. * catgets/Makefile: Add rules to build and run test-gencat. * catgets/sample.SJIS: New file. * catgets/test-gencat.c: New file. * catgets/test-gencat.sh: New file. Report and test case by Shinya Hanataka . --- catgets/test-gencat.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 catgets/test-gencat.c (limited to 'catgets/test-gencat.c') diff --git a/catgets/test-gencat.c b/catgets/test-gencat.c new file mode 100644 index 0000000000..fe5d0916b7 --- /dev/null +++ b/catgets/test-gencat.c @@ -0,0 +1,23 @@ +#include +#include +#include +#include + +int +main (void) +{ + nl_catd catalog; + setlocale (LC_ALL, ""); + + printf ("LC_MESSAGES = %s\n", setlocale (LC_MESSAGES, NULL)); + + catalog = catopen ("sample", NL_CAT_LOCALE); + printf ("%s\n", catgets(catalog, 1, 1, "sample 1")); + printf ("%s\n", catgets(catalog, 1, 2, "sample 2")); + printf ("%s\n", catgets(catalog, 1, 3, "sample 3")); + printf ("%s\n", catgets(catalog, 1, 4, "sample 4")); + printf ("%s\n", catgets(catalog, 1, 5, "sample 5")); + catclose (catalog); + + return 0; +} -- cgit v1.2.3