mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 06:18:32 +00:00
Convert VolumeDirectory names back to SHIFT-JIS (issue #9988)
This commit is contained in:
parent
54dcd3a89b
commit
e66ad018f4
4 changed files with 76 additions and 12 deletions
|
@ -40,3 +40,12 @@ TEST(StringUtil, StringEndsWith)
|
|||
EXPECT_TRUE(StringEndsWith("abc", ""));
|
||||
EXPECT_TRUE(StringEndsWith("", ""));
|
||||
}
|
||||
|
||||
TEST(StringUtil, UTF8ToSHIFTJIS)
|
||||
{
|
||||
const std::string kirby_unicode = "\xe6\x98\x9f\xe3\x81\xae\xe3\x82\xab\xe3\x83\xbc\xe3\x83\x93\xe3\x82\xa3";
|
||||
const std::string kirby_sjis = "\x90\xaf\x82\xcc\x83\x4a\x81\x5b\x83\x72\x83\x42";
|
||||
|
||||
EXPECT_STREQ(SHIFTJISToUTF8(UTF8ToSHIFTJIS(kirby_unicode)).c_str(), kirby_unicode.c_str());
|
||||
EXPECT_STREQ(UTF8ToSHIFTJIS(kirby_unicode).c_str(), kirby_sjis.c_str());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue