Date: Mon, 10 Jan 2000 00:17:13 -0500 (EST) From: Mikhail Teterin <mi@kot.ne.mediaone.net> To: Thomas David Rivers <rivers@dignus.com> Cc: stable@FreeBSD.ORG Subject: Re: isprint(3) and LANG/LOCALE Message-ID: <200001100517.AAA86381@rtfm.newton> In-Reply-To: <200001100512.AAA34272@lakes.dignus.com> from Thomas David Rivers at "Jan 10, 2000 00:12:50 am"
next in thread | previous in thread | raw e-mail | index | archive | help
Thomas David Rivers once stated: => 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001100517.AAA86381>