Bug 8437 - libc/locale/ansi.c problem
Summary: libc/locale/ansi.c problem
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 3.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1998-10-25 01:20 UTC by sada
Modified: 1998-10-25 05:08 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sada 1998-10-25 01:20:01 UTC
	The file `/usr/src/lib/libc/locale/ansi.c' seems to have a bug
	and couse problems on treating Japanese locale functions.

Fix: 

-       while (n > 0) {
+       while ((signed int)n > 0) {
                if (*pwcs == 0) {
                        *s = 0;
                        break;--Nen176cqolGErTsAB8xemyzoNRb34eRf1xRPwX1VNkMSmJIX
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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);
How-To-Repeat: 
	Go <URL:http://www.bres.tsukuba.ac.jp/~yohta/netscape/>,
	see FreeBSD relating pages, and try the method:
	"How to set 'libxpg4.so.2.0' on LD_PRELOAD environment variable"
Comment 1 Andrey A. Chernov freebsd_committer freebsd_triage 1998-10-25 05:07:34 UTC
State Changed
From-To: open->closed

fixed differently in ansi.c v1.3