From owner-freebsd-stable Sun Jan 9 21:18:58 2000 Delivered-To: freebsd-stable@freebsd.org Received: from kot.ne.mediaone.net (kot.ne.mediaone.net [24.218.15.190]) by hub.freebsd.org (Postfix) with ESMTP id E247614D05 for ; Sun, 9 Jan 2000 21:18:54 -0800 (PST) (envelope-from mi@kot.ne.mediaone.net) Received: from rtfm.newton (mi@rtfm.newton [10.10.0.1]) by kot.ne.mediaone.net (8.9.3/8.9.1) with ESMTP id AAA17978; Mon, 10 Jan 2000 00:17:13 -0500 (EST) From: Mikhail Teterin X-Relay-IP: 10.10.0.1 Received: (from mi@localhost) by rtfm.newton (8.9.3/8.9.3) id AAA86381; Mon, 10 Jan 2000 00:17:13 -0500 (EST) (envelope-from mi@kot.ne.mediaone.net) Message-Id: <200001100517.AAA86381@rtfm.newton> Subject: Re: isprint(3) and LANG/LOCALE In-Reply-To: <200001100512.AAA34272@lakes.dignus.com> from Thomas David Rivers at "Jan 10, 2000 00:12:50 am" To: Thomas David Rivers Date: Mon, 10 Jan 2000 00:17:13 -0500 (EST) Cc: stable@FreeBSD.ORG X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7w hJ5G_<5143Bb3kOIs9XpX+"V+~$adGP:J|SLieM31VIhqXeLBli" Is the subject supposed to consider the LANG setting? I'd think so, => but it does not :( Send-pr? I have a bunch of jpeg-images with => comments in Russian. rdjpeg(1) reads them, but because isprint(3) => says 0, prints every character's octal value :(. Thanks! = As you point out, the isprint(3) man page seems to suggest it does not = check lang - isprint simply looks at the byte and decides if it's = printable in the ASCII char set. Well, the man page gives the list, of what the is considered printable in the ASCII charset, thus implying, there may be other lists under other charsets. That's my impression. Somehow vi(1), for example, does pay attention to the LANG when displaying characters. =Perhaps the best thing to do would be to remove the test in rdjpeg??? There may indeed be junk there. I'd love to get rdjpeg whatever vi is smoking... -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message