summaryrefslogtreecommitdiff
path: root/xpcom/build
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-05-14 12:25:57 +0000
committerMoonchild <moonchild@palemoon.org>2021-05-14 12:25:57 +0000
commitc921ad59d5acfe973199bf742a852db71ebe2b5c (patch)
tree804e618fd084b1782f77b4ba07031b064b3b8656 /xpcom/build
parent349346d0b76aec02354149da0f860d5bf7ec7b83 (diff)
downloaduxp-c921ad59d5acfe973199bf742a852db71ebe2b5c.tar.gz
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.
Diffstat (limited to 'xpcom/build')
-rw-r--r--xpcom/build/XPCOMInit.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/xpcom/build/XPCOMInit.cpp b/xpcom/build/XPCOMInit.cpp
index 18aed6528a..e96314a1c5 100644
--- a/xpcom/build/XPCOMInit.cpp
+++ b/xpcom/build/XPCOMInit.cpp
@@ -574,10 +574,6 @@ NS_InitXPCOM2(nsIServiceManager** aResult,
setlocale(LC_ALL, "");
}
-#if defined(XP_UNIX)
- NS_StartupNativeCharsetUtils();
-#endif
-
NS_StartupLocalFile();
nsDirectoryService::RealInit();
@@ -1020,9 +1016,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.