Mailinglist Archive: opensuse-programming-de (6 mails)

< Previous Next >
[opensuse-programming-de] isprint vs. iswprint
  • From: Philipp Thomas <Philipp.Thomas2@xxxxxxx>
  • Date: Thu, 08 Jul 2010 00:31:23 +0200
  • Message-id: <9av936h44dqe8dttgf2nabpjg8t6f3uo6j@xxxxxxx>
Maybe somebody here can help. There is a bug in unzip in that it can
uncompress files with multibyte encoded file names but it can't print
it. The reason is that unzip uses isprint and isprint can't handle
multibyte characters. The solution would be to use iswprint but that
would require calling mbrtowc which I've never used before. So gven
the original

char * r;

if (!isprint(*r))

How would the replacement using iswprint and mbrtowc look like?

To unsubscribe, e-mail: opensuse-programming-de+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-programming-de+help@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups