>>> On Tue, 10 Apr 2001 18:46:19 +0200
>>> Corinna Vinschen <[EMAIL PROTECTED]> said:

> Hi Egor,

Can I answer your question on behalf of him?

> I'm somewhat surprised about that patch and pretty curious.
> I had a look into the patch and basically it changes two
> things:
> 
> - calling WideCharToMultiByte instead of wcstombs
> - drops using wcslen.
> 
> Why is that needed? What is the problem with the original functions?

The `wcstombs' included in newlib simply strips the higher byte
of Unicode. It can't translate Cyrillic, Greek, Turkish, and so on
from Unicode to their ANSI codepages. WideCharToMultiByte can do
these translations well.
____
  | AIST      Kazuhiro Fujieda <[EMAIL PROTECTED]>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology

Reply via email to