Ok My UCRTBASE version is 10.0.18362.387
The Visual Studio 2017 test I compiled and run using static and dynamic libraries (ucrtbase.dll) worked, in the sense that after calling *setlocale(LC_ALL, ".UTF8")* , the call to fopen using a UTF-8 filename with special characters worked. Best, Scuri Em qui., 7 de mai. de 2020 às 15:53, Andrew Robinson <arobinso...@cox.net> escreveu: > My final answer: > > 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 > > 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 collate functions. It does not affect translation or file > functions. > > NOTE 5: Ucrtbase will crash if category flag invalid, e.g. -- 31 decimal. > This is a minor issue. > > Best Regards, > Andres > > On 2020-05-06 at 7:17 PM, Andrew Robinson <arobinso...@cox.net> wrote: > > The files you sent are using ucrtbase.dll, which works no different than > msvcrt does. You do know that there are a great many other MS crt files, > such as msvcp100.dll and msvcp120.dll and so on? You want to try all those > too? I'm sure they won't work either. > > I got kind of tired of playing this game so I looked up all the locales in > the ucrtbase.dll and I entered the list at the end of this email. I tried a > few of them (en-us, american-english, spanish-uruguay, england, etc) and > most of them worked (except for england). Some might not really be a > locale but some other string mixed in with the locale strings. I just did a > cut-and-paste from the dll. > > The bottom-line is that there is absolutely no ".UTF8" string anywhere. It > is completely invalid. > > So what about that comment on the MS website? It is fake news because it > isn't an official statement from MS and it isn't mentioned anywhere else on > the MS website. I could never get any of the MS dlls/libs to return > anything other than NULL for anything with "UTF" in it (I tried a few > variations). That matches what the documentation says and what is in the > actual crt DLLs, but maybe there is a version of the crts that mistakenly > does return a NULL, even though nothing has changed. > > FYI: Further investigation of pocrt shows that while it returns a non-NULL > value for UTF-8, I followed the pointer and it was pointing to the letter > "C", which is the default locale for setlocale(). So it isn't working > either. > > I looked at setlocale_utf8+dll14.exe (for example) and it does return a > NULL for ".UTF8", but you say it works? If you can swear that your code > works, maybe you do need to send me a copy of your ucrtbase.dll (it's in > the Windows.System32 directory, just in case you don't know where it's at). > That's seems to be the only thing it could be because everything is doing > exactly what it should be doing. Your msvcrt.dll would work too but I'm > more interested in the universal crt. > > Oh, and I'm using Win7 so if you do give me a dll, give me one that works > with Win7. Nothing from Win10 please. > > Best Regards, > Andrew > > american > american english > american-english > australian > belgian > canadian > chinese > chinese-hongkong > chinese-simplified > chinese-singapore > chinese-traditional > dutch-belgian > english-american > english-aus > english-belize > english-can > english-caribbean > english-ire > english-jamaica > english-nz > english-south africa > english-trinidad y tobago > english-uk > english-us > english-usa > french-belgian > french-canadian > french-luxembourg > french-swiss > german-austrian > german-lichtenstein > german-luxembourg > german-swiss > irish-english > italian-swiss > norwegian > norwegian-bokmal > norwegian-nynorsk > portuguese-brazilian > spanish-argentina > spanish-bolivia > spanish-chile > spanish-colombia > spanish-costa rica > spanish-dominican republic > spanish-ecuador > spanish-el salvador > spanish-guatemala > spanish-honduras > spanish-mexican > spanish-modern > spanish-nicaragua > spanish-panama > spanish-paraguay > spanish-peru > spanish-puerto rico > spanish-uruguay > spanish-venezuela > swedish-finland > swiss > america > britain > china > czech > england > great britain > holland > hong-kong > new-zealand > pr china > pr-china > puerto-rico > slovak > south africa > south korea > south-africa > south-korea > trinidad & tobago > united-kingdom > united-states > zh-CHS > ar-SA > bg-BG > ca-ES > zh-TW > cs-CZ > da-DK > de-DE > el-GR > fi-FI > fr-FR > he-IL > hu-HU > is-IS > it-IT > ja-JP > ko-KR > nl-NL > nb-NO > pl-PL > pt-BR > ro-RO > ru-RU > hr-HR > sk-SK > sq-AL > sv-SE > th-TH > tr-TR > ur-PK > id-ID > uk-UA > be-BY > sl-SI > et-EE > lv-LV > lt-LT > fa-IR > vi-VN > hy-AM > az-AZ-Latn > eu-ES > mk-MK > tn-ZA > xh-ZA > zu-ZA > af-ZA > ka-GE > fo-FO > hi-IN > mt-MT > se-NO > ms-MY > kk-KZ > ky-KG > sw-KE > uz-UZ-Latn > tt-RU > bn-IN > pa-IN > gu-IN > ta-IN > te-IN > kn-IN > ml-IN > mr-IN > sa-IN > mn-MN > cy-GB > gl-ES > kok-IN > syr-SY > div-MV > quz-BO > ns-ZA > mi-NZ > ar-IQ > zh-CN > de-CH > en-GB > es-MX > fr-BE > it-CH > nl-BE > nn-NO > pt-PT > sr-SP-Latn > sv-FI > az-AZ-Cyrl > se-SE > ms-BN > uz-UZ-Cyrl > quz-EC > ar-EG > zh-HK > de-AT > en-AU > es-ES > fr-CA > sr-SP-Cyrl > se-FI > quz-PE > ar-LY > zh-SG > de-LU > en-CA > es-GT > fr-CH > hr-BA > smj-NO > ar-DZ > zh-MO > de-LI > en-NZ > es-CR > fr-LU > bs-BA-Latn > smj-SE > ar-MA > en-IE > es-PA > fr-MC > sr-BA-Latn > sma-NO > ar-TN > en-ZA > es-DO > sr-BA-Cyrl > sma-SE > ar-OM > en-JM > es-VE > sms-FI > ar-YE > en-CB > es-CO > smn-FI > ar-SY > en-BZ > es-PE > ar-JO > en-TT > es-AR > ar-LB > en-ZW > es-EC > ar-KW > en-PH > es-CL > ar-AE > es-UY > ar-BH > es-PY > ar-QA > es-BO > es-SV > es-HN > es-NI > es-PR > zh-CHT > af-za > ar-ae > ar-bh > ar-dz > ar-eg > ar-iq > ar-jo > ar-kw > ar-lb > ar-ly > ar-ma > ar-om > ar-qa > ar-sa > ar-sy > ar-tn > ar-ye > az-az-cyrl > az-az-latn > be-by > bg-bg > bn-in > bs-ba-latn > ca-es > cs-cz > cy-gb > da-dk > de-at > de-ch > de-de > de-li > de-lu > div-mv > el-gr > en-au > en-bz > en-ca > en-cb > en-gb > en-ie > en-jm > en-nz > en-ph > en-tt > en-us > en-za > en-zw > es-ar > es-bo > es-cl > es-co > es-cr > es-do > es-ec > es-es > es-gt > es-hn > es-mx > es-ni > es-pa > es-pe > es-pr > es-py > es-sv > es-uy > es-ve > et-ee > eu-es > fa-ir > fi-fi > fo-fo > fr-be > fr-ca > fr-ch > fr-fr > fr-lu > fr-mc > gl-es > gu-in > he-il > hi-in > hr-ba > hr-hr > hu-hu > hy-am > id-id > is-is > it-ch > it-it > ja-jp > ka-ge > kk-kz > kn-in > kok-in > ko-kr > ky-kg > lt-lt > lv-lv > mi-nz > mk-mk > ml-in > mn-mn > mr-in > ms-bn > ms-my > mt-mt > nb-no > nl-be > nl-nl > nn-no > ns-za > pa-in > pl-pl > pt-br > pt-pt > quz-bo > quz-ec > quz-pe > ro-ro > ru-ru > sa-in > se-fi > se-no > se-se > sk-sk > sl-si > sma-no > sma-se > smj-no > smj-se > smn-fi > sms-fi > sq-al > sr-ba-cyrl > sr-ba-latn > sr-sp-cyrl > sr-sp-latn > sv-fi > sv-se > sw-ke > syr-sy > ta-in > te-in > th-th > tn-za > tr-tr > tt-ru > uk-ua > ur-pk > uz-uz-cyrl > uz-uz-latn > vi-vn > xh-za > zh-chs > zh-cht > zh-cn > zh-hk > zh-mo > zh-sg > zh-tw > zu-za > > >
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users