diff options
author | Thomas Lange [tl] <tl@openoffice.org> | 2010-11-23 11:00:54 +0100 |
---|---|---|
committer | Thomas Lange [tl] <tl@openoffice.org> | 2010-11-23 11:00:54 +0100 |
commit | ccad553abd004bd82c12d8fbffe384bd31efe419 (patch) | |
tree | f5d453342b79105a23b64b7aa26510c36bb37333 /linguistic/source/misc2.cxx | |
parent | f2fa314add81d4b6b512e23f6979eae64d82a9eb (diff) |
cws tl84: #i96486#
Diffstat (limited to 'linguistic/source/misc2.cxx')
-rw-r--r-- | linguistic/source/misc2.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/linguistic/source/misc2.cxx b/linguistic/source/misc2.cxx index df7bc2f9f636..85008d97a7a9 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 ); } |