From c2d77afdfc356c11ee27e862a38f5be150ac27dd Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Sun, 31 Mar 2013 00:11:24 +0200 Subject: 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 --- sal/rtl/bootstrap.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sal') 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; -- cgit