Date: Tue, 12 Mar 2002 09:35:32 +0300 From: Gennady Proskurin <gpr@nvnpp.vrn.ru> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/35812: strings(1) does'n print russian characters Message-ID: <E16kfsi-0004bX-00@fbsd.nvnpp.vrn.ru>
next in thread | raw e-mail | index | archive | help
>Number: 35812 >Category: bin >Synopsis: strings(1) does'n print russian characters >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: Mon Mar 11 22:40:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Gennady Proskurin >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD gpr.nvnpp.lan 5.0-CURRENT FreeBSD 5.0-CURRENT #4: Mon Mar 11 09:59:59 MSK 2002 gpr@gpr.nvnpp.lan:/usr/obj/usr/src/sys/gpr i386 >Description: strings(1) does'n print russian characters due to incorrect type cast. >How-To-Repeat: echo 'some russian chars' | strings >Fix: --- /usr/src/usr.bin/strings/strings.c.orig Tue Mar 12 09:16:05 2002 +++ /usr/src/usr.bin/strings/strings.c Tue Mar 12 09:16:07 2002 @@ -184,7 +184,7 @@ else printf("%s", bfr); while ((ch = getch()) != EOF && ISSTR(ch)) - putchar((char)ch); + putchar((unsigned char)ch); putchar('\n'); } cnt = 0; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E16kfsi-0004bX-00>