<<< Date Index >>>     <<< Thread Index >>>

Re: national chars - libiconv not used?



Hello,
the output is:

isprint(129) = 128
iswprint(129) = 128
mbrtowc returns 1, and converted char 0x81 to wc U+0081
iswprint(129) = 128

Michal

Alain Bench wrote:
Hello Michal,

 On Tuesday, June 20, 2006 at 11:08:34 +0200, Alain Bench wrote:


[checklocale] This 852 locale works very well...


    Perhaps wide functions or type conversions fail. Could you please
try the attached test? In your locale it should give something as:

| $ ./iswprint81
| isprint(129) = 1
| iswprint(129) = 0
| mbrtowc returns 1, and converted char 0x81 to wc U+00FC
| iswprint(252) = 1

    Where the char coded 0x81 in CP-852 is the printable 'ü' u umlaut
U+00FC. I fear it may be considered as in HP-ROMAN8 the non-printable
control char U+0081.


Bye!    Alain.