summaryrefslogtreecommitdiff
path: root/linguistic/source
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
commit8b873ae44c244cf458f16df1e0e422b192ab985d (patch)
tree4cdd0b914db0f1a2987b018cd8daa6f6b4426100 /linguistic/source
parent1851104998e0996874dbebccbfbd4778848f1f17 (diff)
parenta1a2a5a68046e75aba3dfd6ba06083a314f12182 (diff)
CWS gnumake3: resync to m99
Diffstat (limited to 'linguistic/source')
-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 16874c4ff830..9c02a976fcbd 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 );
}