Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
locale.c: Add fallbacks if no mbtowc()
This add heuristics that work well for non-English locales to determine if a locale is UTF-8 or not when mbtowc() isn't available. It would be a very rare compiler that didn't have that these days, but this covers that case as best as I have been able to figure out.
- Loading branch information
1 parent
b0f31e0
commit d7a264b
Showing
1 changed file
with
107 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters