Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
locale.c: Improved fallback UTF-8 locale detection
This adds some more checks for when the platform lacks mbtowc(). We can check if things like isprint(), toupper() match what a UTF-8 locale would do. If not, we can rule out UTF-8.
- Loading branch information
1 parent
627c39a
commit 4b9e970
Showing
1 changed file
with
150 additions
and
12 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