PS -- I forgot to add: If you see anything you think I got wrong or isn't clear, feel free to let me know so I can go back and correct any mistakes. I won't take it personally because I love honest feedback.
On 2020-05-09 at 3:29 PM, Andrew Robinson <arobinso...@cox.net> wrote: My final answer (updated): The only program that seemed to work on my system was setlocale_utf8_vc15.exe, but it while it didn't fail, it also didn't exactly pass because it returns a string for a locale that doesn't exist in any current Microsoft documentation: English_United States.utf8. I think it might actually be documented in some old MSDOS documentation, as it might be a poorly documented representation of an en-US locale with the OEM console page set to UTF8 by chcp, hence the dot UTF8 instead of a simple UTF8 for locale. Knowing UTF8, that doesn't really mean anything anyways, since UTF8 is ASCII/ANSI/English backwards compatible because UTF8 is byte oriented (as is GB18030, by the way). en-US en_US US .UTF8 Version Well Documented? POCRT Fail Fail Pass Fail 8.0.2.0 N/A MSVCRT Fail Fail Pass Fail 7.0.7601.17744 No UCRTBASE Pass Fail Fail Fail 10.0.14393.2247 Yes SLL Pass Fail Fail Sorta ?? No NOTE 1: Microsoft never said they supported UTF-8 as a locale, in fact they said they would for the first time ever start supporting it with the May of 2020 release of Win10. NOTE 2: Could not confirm rumors that UTF-8 can be set as a locale. NOTE 3: en_US is for Linux, not Windows. NOTE 4: setlocale() is documented to only affect numeric, monetary, time, and the Windows legacy collate functions. It does not affect translation or file functions. NOTE 5: Ucrtbase will consistently crash if either category or locale is invalid. This is a minor issue, although none of the other versions of setlocale() will crash, but instead will return NULL. NOTE 6: chcp doesn't work with gui programs, so none of this is a valid test for any IUP apps NOTE 7: The comment about ".UTF8" being valid on the Microsoft website for setlocale() does not appear valid, reproducible, nor is it officially recognized by Microsoft. It should be ignored as all fake news is. Best Regards, Andres
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users