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 | 54903a013f25b7413f0e46b1889806d3fe12c97b (patch) | |
tree | ddcada12ddc5aff0c2bd6c43cf096e3a1ac42e03 /linguistic | |
parent | ae7eee399a424cf8ccce54cfb03f2a1333e6a46d (diff) |
cws tl84: #i96486#
Diffstat (limited to 'linguistic')
-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 2b5910e031..e395d8c135 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 ); } |