зеркало из https://github.com/mozilla/pjs.git
Return UTF-8 as a platform file charset,
bug 199384, r=ccarlen, sr=darin, a=asa.
This commit is contained in:
Родитель
8a19fdde5b
Коммит
68ac687e89
|
@ -128,6 +128,11 @@ nsPlatformCharset::GetCharset(nsPlatformCharsetSel selector, nsAString& oResult)
|
|||
}
|
||||
|
||||
switch (selector) {
|
||||
#ifdef XP_MACOSX
|
||||
case kPlatformCharsetSel_FileName:
|
||||
oResult.Assign(NS_LITERAL_STRING("UTF-8"));
|
||||
break;
|
||||
#endif
|
||||
case kPlatformCharsetSel_KeyboardInput:
|
||||
rv = MapToCharset(
|
||||
(short) (0x0000FFFF & ::GetScriptManagerVariable(smKeyScript)),
|
||||
|
|
Загрузка…
Ссылка в новой задаче