summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-03-31 00:11:24 +0200
committerTor Lillqvist <tml@iki.fi>2013-03-31 09:41:47 +0300
commitc2d77afdfc356c11ee27e862a38f5be150ac27dd (patch)
tree8d9074aec603c6b0a7f44a16e35c43b605efbd9f /sal
parente581dd2cdad358cbf123a44c488bb86036a00e7f (diff)
Must percent-escape the APP_DATA_DIR
On the iOS Simulator it contains spaces, as in /Users/tml/Library/Application Support/iPhone Simulator/6.1/Applications/9A6DFE86-77AF-4B78-8FFB-93FCA6C38EE1/LibreOffice.app Change-Id: I90c76b909901c881aa51482880b1120fea19b99b
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/bootstrap.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/bootstrap.cxx b/sal/rtl/bootstrap.cxx
index d3dadcb50d1c..b348c983252c 100644
--- a/sal/rtl/bootstrap.cxx
+++ b/sal/rtl/bootstrap.cxx
@@ -517,7 +517,7 @@ bool Bootstrap_Impl::getValue(
#endif
#ifdef IOS
if (key == "APP_DATA_DIR") {
- const char *app_data_dir = [[[NSBundle mainBundle] bundlePath] UTF8String];
+ const char *app_data_dir = [[[[NSBundle mainBundle] bundlePath] stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding] UTF8String];
rtl_uString_assign(
value, rtl::OUString(app_data_dir, strlen(app_data_dir), RTL_TEXTENCODING_UTF8).pData);
return true;