summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2011-02-03 15:53:56 +0100
committerMathias Bauer <mba@openoffice.org>2011-02-03 15:53:56 +0100
commit747861e9ac6e6d4cb70fd89891f855653ee6ea74 (patch)
treece5ec3410e41d5e806026bd298a40980dbea9817 /linguistic
parentece4a30fc61589ead802d834c71369f7196e831d (diff)
parent8cdff22a144e3a0a85b5d0219485ca5ab04aa9cf (diff)
CWS gnumake3: resync to m99
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/misc2.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/linguistic/source/misc2.cxx b/linguistic/source/misc2.cxx
index 40d7a3be93..0b308ea6c9 100644
--- a/linguistic/source/misc2.cxx
+++ b/linguistic/source/misc2.cxx
@@ -249,7 +249,10 @@ String GetWritableDictionaryURL( const String &rDicName )
aURLObj.Append( rDicName, INetURLObject::ENCODE_ALL );
DBG_ASSERT(!aURLObj.HasError(), "lng : invalid URL");
- return aURLObj.GetMainURL( INetURLObject::DECODE_TO_IURI );
+ // NO_DECODE preserves the escape sequences that might be included in aDirName
+ // depending on the characters used in the path string. (Needed when comparing
+ // the dictionary URL with GetDictionaryWriteablePath in DicList::createDictionary.)
+ return aURLObj.GetMainURL( INetURLObject::NO_DECODE );
}