Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 May 2012 12:52:58 +0200 (CEST)
From:      Niclas Zeising <zeising@daemonic.se>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/167480: [PATCH] language fixes to usr.bin/mkesdb and usr.bin/mkcsmapper
Message-ID:  <201205011052.q41Aqw43068449@vincent.daemonic.se>
Resent-Message-ID: <201205011100.q41B0OtP030437@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         167480
>Category:       bin
>Synopsis:       [PATCH] language fixes to usr.bin/mkesdb and usr.bin/mkcsmapper
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 01 11:00:23 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Niclas Zeising
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD vincent.daemonic.se 9.0-RELEASE FreeBSD 9.0-RELEASE #0 r232364: Fri Mar 2 01:14:23 CET 2012 root@vincent.daemonic.se:/usr/obj/usr/src/sys/VINCENT amd64


	
>Description:
	The error message in the lex scanner in usr.bin/mkesdb and usr.bin/mkcsmapper could be improved language wise.
>How-To-Repeat:
	
>Fix:

	Attached patch improves the language.

--- head.usr.bin.spellfix.diff begins here ---
Index: head/usr.bin/mkesdb/lex.l
===================================================================
--- head/usr.bin/mkesdb/lex.l	(revision 234868)
+++ head/usr.bin/mkesdb/lex.l	(working copy)
@@ -59,7 +60,7 @@
 <COMMENT>[\n]	{ line_number++; }
 <COMMENT>.	{ }
 <COMMENT><<EOF>>	{
-		yyerror("unexpected file end (unterminate comment)\n");
+		yyerror("unexpected end of file (unterminated comment)\n");
 		exit(1);
 	}
 
Index: head/usr.bin/mkcsmapper/lex.l
===================================================================
--- head/usr.bin/mkcsmapper/lex.l	(revision 234868)
+++ head/usr.bin/mkcsmapper/lex.l	(working copy)
 <COMMENT>[\n]	{ line_number++; }
 <COMMENT>.	{ }
 <COMMENT><<EOF>>	{
-		yyerror("unexpected file end (unterminate comment)\n");
+		yyerror("unexpected end of file (unterminated comment)\n");
 		exit(1);
 	}
 
--- head.usr.bin.spellfix.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201205011052.q41Aqw43068449>