From d578dffe206f2b47d43b6cf5bcccd20ebf13cf29 Mon Sep 17 00:00:00 2001 From: "ftang%netscape.com" Date: Thu, 20 Apr 2000 05:08:02 +0000 Subject: [PATCH] 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 --- mozilla/xpcom/io/nsFileSpecWin.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozilla/xpcom/io/nsFileSpecWin.cpp b/mozilla/xpcom/io/nsFileSpecWin.cpp index 62a050d1d4f..8d3f971cbfa 100644 --- a/mozilla/xpcom/io/nsFileSpecWin.cpp +++ b/mozilla/xpcom/io/nsFileSpecWin.cpp @@ -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 = '/'; }