diff --git a/netwerk/base/src/nsURLHelper.cpp b/netwerk/base/src/nsURLHelper.cpp index 247f4cb6a537..9e1737762409 100644 --- a/netwerk/base/src/nsURLHelper.cpp +++ b/netwerk/base/src/nsURLHelper.cpp @@ -51,10 +51,6 @@ #include "netCore.h" #include "prprf.h" -#if defined(XP_WIN) -#include // ::IsDBCSLeadByte need -#endif - //---------------------------------------------------------------------------- // Init/Shutdown //---------------------------------------------------------------------------- @@ -292,17 +288,6 @@ net_CoalesceDirs(netCoalesceFlags flags, char* path) (*fwdPtr != '?') && (*fwdPtr != '#'); ++fwdPtr) { - -#if defined(XP_WIN) - // At first, If this is DBCS character, it skips next character. - if (::IsDBCSLeadByte(*fwdPtr) && *(fwdPtr+1) != '\0') - { - *urlPtr++ = *fwdPtr++; - *urlPtr++ = *fwdPtr; - continue; - } -#endif - if (*fwdPtr == '/' && *(fwdPtr+1) == '.' && *(fwdPtr+2) == '/' ) { // remove . followed by slash diff --git a/netwerk/base/src/nsURLHelper.h b/netwerk/base/src/nsURLHelper.h index 5d5b9bda8ea5..5528cdac5fd9 100644 --- a/netwerk/base/src/nsURLHelper.h +++ b/netwerk/base/src/nsURLHelper.h @@ -83,7 +83,7 @@ NS_HIDDEN_(nsresult) net_ParseFileURL(const nsACString &inURL, nsACString &outFileBaseName, nsACString &outFileExtension); -/* handle .. in dirs while resolving URLs */ +/* handle .. in dirs while resolving URLs (path is UTF-8) */ NS_HIDDEN_(void) net_CoalesceDirs(netCoalesceFlags flags, char* path); /**