From owner-freebsd-bugs Thu Apr 8 19: 2: 3 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 5F0BB14D1C for ; Thu, 8 Apr 1999 19:02:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.2/8.9.2) id TAA20070; Thu, 8 Apr 1999 19:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 6D82414C34; Thu, 8 Apr 1999 18:56:25 -0700 (PDT) Message-Id: <19990409015625.6D82414C34@hub.freebsd.org> Date: Thu, 8 Apr 1999 18:56:25 -0700 (PDT) From: philipp@mirapoint.com To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: bin/11037: Gencat doesn't properly handle \ddd octal sequences. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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