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

Perform IsDBCSLeadByte before 0x5c escaping
This commit is contained in:
ftang%netscape.com 2000-04-20 05:08:02 +00:00
parent 7de0f8bd21
commit aacdd70d44

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 = '/';
}