mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-04 13:07:32 +00:00
test(libSceConvertKeycode): the IME keyboard type follows ANYPS5_LANGUAGE=auto
With auto and a German host locale sceConvertKeycodeGetImeKeyboardType gives the IME type of German, and a later change of the host locale does not change it.
This commit is contained in:
1 parent
5bd0a09ab7
commit
6a080f1a6d
1 file changed
+10
@@ -166,6 +166,16 @@ int main() {
|
||||
}
|
||||
SetLanguage("30");
|
||||
Require(sceConvertKeycodeGetImeKeyboardType(0x10000000, &type) == 0 && type == 4);
|
||||
#if defined(__linux__)
|
||||
for (const char* name : {"LC_MESSAGES", "LANG", "LANGUAGE"}) Require(::unsetenv(name) == 0);
|
||||
Require(::setenv("LC_ALL", "de_DE.UTF-8", 1) == 0);
|
||||
SetLanguage("auto");
|
||||
type = 0xFFFFFFFFu;
|
||||
Require(sceConvertKeycodeGetImeKeyboardType(0x10000000, &type) == 0 && type == imeTypeByLanguage[4]);
|
||||
Require(::setenv("LC_ALL", "ja_JP.UTF-8", 1) == 0);
|
||||
type = 0xFFFFFFFFu;
|
||||
Require(sceConvertKeycodeGetImeKeyboardType(0x10000000, &type) == 0 && type == imeTypeByLanguage[4]);
|
||||
#endif
|
||||
SetLanguage(nullptr);
|
||||
|
||||
Require(ImeKeyboardType::IsPs4TitleId("CUSA00000"));
|
||||
|
||||
Reference in new issue
Block a user