Kaydet (Commit) c2d77afd authored tarafından Tor Lillqvist's avatar Tor Lillqvist

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
üst e581dd2c
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment