diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-03-31 00:11:24 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-03-31 09:41:47 +0300 |
commit | c2d77afdfc356c11ee27e862a38f5be150ac27dd (patch) | |
tree | 8d9074aec603c6b0a7f44a16e35c43b605efbd9f /sal/rtl/bootstrap.cxx | |
parent | e581dd2cdad358cbf123a44c488bb86036a00e7f (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/rtl/bootstrap.cxx')
-rw-r--r-- | sal/rtl/bootstrap.cxx | 2 |
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; |