svn commit: trunk/uClibc/extra/locale
aldot at uclibc.org
aldot at uclibc.org
Thu Oct 9 12:21:41 UTC 2008
Author: aldot
Date: 2008-10-09 05:21:41 -0700 (Thu, 09 Oct 2008)
New Revision: 23633
Log:
- standardize fopen error message a bit
Modified:
trunk/uClibc/extra/locale/gen_collate.c
trunk/uClibc/extra/locale/gen_ldc.c
trunk/uClibc/extra/locale/gen_locale.c
trunk/uClibc/extra/locale/gen_mmap.c
trunk/uClibc/extra/locale/gen_wc8bit.c
trunk/uClibc/extra/locale/gen_wctype.c
trunk/uClibc/extra/locale/lmmtolso.c
Changeset:
Modified: trunk/uClibc/extra/locale/gen_collate.c
===================================================================
--- trunk/uClibc/extra/locale/gen_collate.c 2008-10-09 12:19:05 UTC (rev 23632)
+++ trunk/uClibc/extra/locale/gen_collate.c 2008-10-09 12:21:41 UTC (rev 23633)
@@ -1253,7 +1253,7 @@
FILE *fp = fopen("locale_collate.h", "w");
if (!fp) {
- error_msg("couldn't open output file!");
+ error_msg("cannot open output file!");
}
dump_collate(fp);
if (ferror(fp) || fclose(fp)) {
Modified: trunk/uClibc/extra/locale/gen_ldc.c
===================================================================
--- trunk/uClibc/extra/locale/gen_ldc.c 2008-10-09 12:19:05 UTC (rev 23632)
+++ trunk/uClibc/extra/locale/gen_ldc.c 2008-10-09 12:21:41 UTC (rev 23633)
@@ -162,7 +162,7 @@
if (argc == 2)
output_file = argv[1];
if (!(lso = fopen(output_file, "w"))) {
- printf("can't open output file '%s'!\n", output_file);
+ printf("cannot open output file '%s'!\n", output_file);
return EXIT_FAILURE;
}
Modified: trunk/uClibc/extra/locale/gen_locale.c
===================================================================
--- trunk/uClibc/extra/locale/gen_locale.c 2008-10-09 12:19:05 UTC (rev 23632)
+++ trunk/uClibc/extra/locale/gen_locale.c 2008-10-09 12:21:41 UTC (rev 23633)
@@ -584,7 +584,7 @@
if (argc == 3)
output_file = *++argv;
if (output_file == NULL || !(ofp = fopen(output_file, "w"))) {
- printf("error: can not open outputfile '%s' for writing!\n",
+ printf("cannot open output file '%s'!\n",
output_file);
return EXIT_FAILURE;
}
Modified: trunk/uClibc/extra/locale/gen_mmap.c
===================================================================
--- trunk/uClibc/extra/locale/gen_mmap.c 2008-10-09 12:19:05 UTC (rev 23632)
+++ trunk/uClibc/extra/locale/gen_mmap.c 2008-10-09 12:21:41 UTC (rev 23633)
@@ -127,7 +127,7 @@
unsigned char *p;
if (!(fp = fopen("locale.mmap", "w"))) {
- printf("error - can't open locale.mmap for writing!");
+ printf("cannot open locale.mmap for writing!");
return EXIT_FAILURE;
}
Modified: trunk/uClibc/extra/locale/gen_wc8bit.c
===================================================================
--- trunk/uClibc/extra/locale/gen_wc8bit.c 2008-10-09 12:19:05 UTC (rev 23632)
+++ trunk/uClibc/extra/locale/gen_wc8bit.c 2008-10-09 12:21:41 UTC (rev 23633)
@@ -103,7 +103,7 @@
}
if (!(out = fopen("c8tables.h","w"))) {
- printf("error: couldn't open file \"c8tables.h\"\n");
+ printf("cannot open output file 'c8tables.h'!\n");
return EXIT_FAILURE;
}
@@ -173,7 +173,7 @@
codeset_index[0] = 0;
while (--argc) {
if (!(fp = fopen(*++argv,"r"))) {
- printf("error: couldn't open file \"%s\"\n", *argv);
+ printf("cannot open file \"%s\"\n", *argv);
return EXIT_FAILURE;
}
printf("processing %s... ", *argv);
Modified: trunk/uClibc/extra/locale/gen_wctype.c
===================================================================
--- trunk/uClibc/extra/locale/gen_wctype.c 2008-10-09 12:19:05 UTC (rev 23632)
+++ trunk/uClibc/extra/locale/gen_wctype.c 2008-10-09 12:21:41 UTC (rev 23633)
@@ -740,7 +740,7 @@
FILE *fp;
if (!(fp = fopen("wctables.h", "w"))) {
- printf("couldn't open wctables.h!\n");
+ printf("cannot open output file 'wctables.h'!\n");
return EXIT_FAILURE;
}
Modified: trunk/uClibc/extra/locale/lmmtolso.c
===================================================================
--- trunk/uClibc/extra/locale/lmmtolso.c 2008-10-09 12:19:05 UTC (rev 23632)
+++ trunk/uClibc/extra/locale/lmmtolso.c 2008-10-09 12:21:41 UTC (rev 23633)
@@ -14,18 +14,18 @@
size_t i;
if (!(lmm = fopen("locale.mmap", "r"))) {
- printf("can't open locale.mmap!\n");
+ printf("cannot open locale.mmap!\n");
return EXIT_FAILURE;
}
if (fstat(fileno(lmm), &fd_stat)) {
- printf("can't stat locale.mmap!\n");
+ printf("cannot stat locale.mmap!\n");
fclose(lmm);
return EXIT_FAILURE;
}
if (!(lso = fopen("locale_data.c", "w"))) {
- printf("can't open locale_data.c!\n");
+ printf("cannot open locale_data.c!\n");
fclose(lmm);
return EXIT_FAILURE;
}
More information about the uClibc-cvs
mailing list