svn commit: r197757 - user/edwin/locale/usr.bin/unicode2utf8
Edwin Groothuis
edwin at FreeBSD.org
Sun Oct 4 21:22:20 UTC 2009
Author: edwin
Date: Sun Oct 4 21:22:19 2009
New Revision: 197757
URL: http://svn.freebsd.org/changeset/base/197757
Log:
Add warning about the output file being automatically generated.
Modified:
user/edwin/locale/usr.bin/unicode2utf8/unicode2utf8.c
Modified: user/edwin/locale/usr.bin/unicode2utf8/unicode2utf8.c
==============================================================================
--- user/edwin/locale/usr.bin/unicode2utf8/unicode2utf8.c Sun Oct 4 21:14:44 2009 (r197756)
+++ user/edwin/locale/usr.bin/unicode2utf8/unicode2utf8.c Sun Oct 4 21:22:19 2009 (r197757)
@@ -109,6 +109,14 @@ translate(char *file_in, char *file_out)
if ((fout = fopen(file_out, "w")) == NULL)
errx(EX_DATAERR, "Cannot open %s for writing.", file_out);
+ fprintf(fout,
+"#\n"
+"# Do not edit this file, it is created automatically by the unicode2utf8\n"
+"# utility. All changes to this file will be lost.\n"
+"# The source of this file was %s\n"
+"#\n",
+ file_in);
+
while (!feof(fin)) {
if (fgets(line, sizeof(line), fin) != NULL) {
if (line[0] == '#') {
More information about the svn-src-user
mailing list