mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-14 20:22:00 +00:00
fix 22116. Check in patch from m_kato@ga2.so-net.ne.jp
Perform IsDBCSLeadByte before 0x5c escaping
This commit is contained in:
parent
7de0f8bd21
commit
aacdd70d44
@ -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 = '/';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user