cvs commit: hugs98/src char.c
ross at haskell.org
Fri Apr 22 07:43:33 EDT 2005
ross 2005/04/22 04:43:33 PDT
Use mbrtowc() instead of mbtowc(), as suggested by Ian Lynagh, so we don't
have to read so far ahead before reporting an encoding error.
Also deal with encodings that require lookahead (one byte, anyway),
like TCVN (also spotted by Ian Lynagh) -- can't test it at the moment,
because glibc's implementation of that encoding is broken at the moment.
Revision Changes Path
1.17 +53 -39 hugs98/src/char.c
More information about the Cvs-hugs