Windows10でロケール情報を正常に取得できない
11 views (last 30 days)
Show older comments
matlab2016aでコンパイルしたexeファイルをmatlab runtime(v901)で動かした時に
disp(get(0,'language'));
disp(System.Globalization.CultureInfo.CurrentUICulture.ThreeLetterWindowsLanguageName)
disp(java.util.Locale.getDefault())
[res, stat] = system('powershell.exe -inputformat none -Command Get-WinSystemLocale')
disp(stat)
これらの行の出力が
en_US
JPN
en_US
LCID Name DisplayName
---- ---- -----------
1041 ja-JP 日本語 (日本)
となります。osのロケール情報で英語と日本語に切り替える仕様にしていたのですが、ある日突然get(0,'language’)では英語としか取得できなくなりました。何故こうなるのか原因が知りたいです。
Windows10 home
バージョン 1903
追記:windowsの言語設定を英語(米)にすると結果は
en_US
ENU
en_US
LCID Name DisplayName
---- ---- -----------
1041 ja-JP Japanese (Japan)
となります。
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!