Date: Sun, 4 Oct 2009 21:22:19 +0000 (UTC) From: Edwin Groothuis <edwin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r197757 - user/edwin/locale/usr.bin/unicode2utf8 Message-ID: <200910042122.n94LMJP4085772@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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] == '#') {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910042122.n94LMJP4085772>