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:
Moonchild 2021-05-14 12:25:57 +00:00 committed by roytam1
commit 8744911c18
3 changed files with 15 additions and 891 deletions

View file

@ -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.