mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 14:28:39 +09:00
Issue #1772 - Stop using legacy code page conversion for file paths on Linux.
OS.File already only supports UTF-8 paths on non-Windows systems, so this change makes our different ways of accessing file paths consistent with each other. This should prevent unexpected crashes in glibc that expect UTF-8. This resolves #1772.
This commit is contained in:
parent
90df4cfb70
commit
8744911c18
3 changed files with 15 additions and 891 deletions
|
|
@ -575,10 +575,6 @@ NS_InitXPCOM2(nsIServiceManager** aResult,
|
|||
setlocale(LC_ALL, "");
|
||||
}
|
||||
|
||||
#if defined(XP_UNIX)
|
||||
NS_StartupNativeCharsetUtils();
|
||||
#endif
|
||||
|
||||
NS_StartupLocalFile();
|
||||
|
||||
StartupSpecialSystemDirectory();
|
||||
|
|
@ -1023,9 +1019,6 @@ ShutdownXPCOM(nsIServiceManager* aServMgr)
|
|||
|
||||
// Shutdown nsLocalFile string conversion
|
||||
NS_ShutdownLocalFile();
|
||||
#ifdef XP_UNIX
|
||||
NS_ShutdownNativeCharsetUtils();
|
||||
#endif
|
||||
|
||||
// Shutdown xpcom. This will release all loaders and cause others holding
|
||||
// a refcount to the component manager to release it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue