From owner-svn-src-user@FreeBSD.ORG Sun Oct 4 21:22:20 2009 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78C1F106568D; Sun, 4 Oct 2009 21:22:20 +0000 (UTC) (envelope-from edwin@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 05EBC8FC0C; Sun, 4 Oct 2009 21:22:20 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n94LMJoO085774; Sun, 4 Oct 2009 21:22:19 GMT (envelope-from edwin@svn.freebsd.org) Received: (from edwin@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n94LMJP4085772; Sun, 4 Oct 2009 21:22:19 GMT (envelope-from edwin@svn.freebsd.org) Message-Id: <200910042122.n94LMJP4085772@svn.freebsd.org> From: Edwin Groothuis Date: Sun, 4 Oct 2009 21:22:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r197757 - user/edwin/locale/usr.bin/unicode2utf8 X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Oct 2009 21:22:20 -0000 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] == '#') {