From owner-freebsd-bugs Sat Oct 24 17:20:07 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA18977 for freebsd-bugs-outgoing; Sat, 24 Oct 1998 17:20:07 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA18968 for ; Sat, 24 Oct 1998 17:20:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id RAA18935; Sat, 24 Oct 1998 17:20:01 -0700 (PDT) Received: from rr.iij4u.or.jp (h028.p060.iij4u.or.jp [210.130.60.28]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id RAA18179 for ; Sat, 24 Oct 1998 17:11:09 -0700 (PDT) (envelope-from sada@rr.iij4u.or.jp) Received: (qmail 11337 invoked by uid 1000); 25 Oct 1998 09:10:35 +0900 Message-Id: <19981025001035.11336.qmail@sada.e-mail.ne.jp> Date: 25 Oct 1998 09:10:35 +0900 From: sada@e-mail.ne.jp To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/8437: libc/locale/ansi.c problem Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8437 >Category: bin >Synopsis: libc/locale/ansi.c problem >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 24 17:20:01 PDT 1998 >Last-Modified: >Originator: SADA Kenji >Organization: Nagoya.Aichi.Japan >Release: FreeBSD 3.0-CURRENT >Environment: FreeBSD 3.0-CURRENT #0: Sun Oct 25 05:38:45 JST 1998 XFree86 3.3.2.3 >Description: The file `/usr/src/lib/libc/locale/ansi.c' seems to have a bug and couse problems on treating Japanese locale functions. >How-To-Repeat: Go , see FreeBSD relating pages, and try the method: "How to set 'libxpg4.so.2.0' on LD_PRELOAD environment variable" >Fix: --- ansi.c.orig Thu Apr 18 16:01:46 1996 +++ ansi.c Sat Oct 24 05:18:11 1998 @@ -132,7 +132,7 @@ if (!pwcs || !s) return (-1); - while (n > 0) { + while ((signed int)n > 0) { if (*pwcs == 0) { *s = 0; break; >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message