I'm asking for this change because if you read some data that is in
another locale while you're inadvertently set to euc, you want to know
you hit a data error rather than having some other data value returned.
For anyone looking, the code has been there since 2002 when the euc
locale had it's own mbrtowc code added:
Revision 121893 - (view) (download) (annotate) - [select for diffs]
Modified Sun Nov 2 10:09:33 2003 UTC (9 years, 3 months ago) by tjr
File length: 5611 byte(s)
Diff to previous 101566
Convert the Big5, EUC, MSKanji and UTF-8 encoding methods to implement
mbrtowc() and wcrtomb() directly. GB18030, GBK and UTF2 are left
unconverted; GB18030 will be done eventually, but GBK and UTF2 may just
be removed, as they are subsets of GB18030 and UTF-8 respectively.