fix 22116. Check in patch from m_kato@ga2.so-net.ne.jp

Perform IsDBCSLeadByte before 0x5c escaping


git-svn-id: svn://10.0.0.236/trunk@66524 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
ftang%netscape.com
2000-04-20 05:08:02 +00:00
parent a52af9e334
commit d578dffe20

View File

@@ -145,6 +145,11 @@ void nsFileSpecHelpers::NativeToUnix(nsSimpleCharString& ioPath)
// Convert '\' to '/'
for (; *cp; cp++)
{
if(IsDBCSLeadByte(*cp) && *(cp+1) != nsnull)
{
cp++;
continue;
}
if (*cp == '\\')
*cp = '/';
}