Date: Thu, 8 Apr 1999 18:56:25 -0700 (PDT) From: philipp@mirapoint.com To: freebsd-gnats-submit@freebsd.org Subject: bin/11037: Gencat doesn't properly handle \ddd octal sequences. Message-ID: <19990409015625.6D82414C34@hub.freebsd.org>
index | next in thread | raw e-mail
>Number: 11037
>Category: bin
>Synopsis: Gencat doesn't properly handle \ddd octal sequences.
>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: Thu Apr 8 19:00:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator: Philip A. Prindeville
>Release: 2.2.8-RELEASE
>Organization:
Mirapoint
>Environment:
FreeBSD putois.mirapoint.com 2.2.8-RELEASE FreeBSD 2.2.8-RELEASE #0: Mon Nov 30 06:34:08 GMT 1998 jkh@time.cdrom.com:/usr/src/sys/compile/GENERIC i386
>Description:
Gencat will discard sequences of \ddd in the message strings as
it does not increment the pointer where it is copying the
destination string into...
>How-To-Repeat:
Run gencat on the following file contents:
$quote " this was generated from a .h file
$set 1 simple test example
1 "Ceci est pour demontre le probl\350me."
and then run "od -xc" on the output file. It will show
"... le problme." with the egrave deleted.
>Fix:
*** usr.bin/gencat/genlib.c# Wed Jul 9 23:38:32 1997
--- usr.bin/gencat/genlib.c Thu Apr 8 18:41:59 1999
***************
*** 265,270 ****
--- 265,271 ----
*tptr += (*cptr - '0');
++cptr;
}
+ tptr++;
} else {
warning(cptr, "unrecognized escape sequence");
}
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990409015625.6D82414C34>
