summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorVladimir Glazunov <vg@openoffice.org>2011-01-27 16:53:34 +0100
committerVladimir Glazunov <vg@openoffice.org>2011-01-27 16:53:34 +0100
commitdf811224967697ebc4d4745d1682a4c0ee6ea7a2 (patch)
tree241d6d0204404a7b55d137da022313009ea35419 /linguistic
parente76f11915882cad3f6cbc04c81a78ce241f2dc15 (diff)
parentbc2563911ebe918bd1663e413b843d348badded8 (diff)
CWS-TOOLING: integrate CWS tl84
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 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 );
}