[Libreoffice-commits] core.git: desktop/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu Nov 1 22:36:38 UTC 2018


 desktop/source/lib/init.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit bee3790d547506500dc195eebfa8735bb8fba2d9
Author:     Tor Lillqvist <tml at iki.fi>
AuthorDate: Thu Nov 1 23:28:03 2018 +0200
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Fri Nov 2 00:35:10 2018 +0200

    We now use a fixed name ICU data file in the iOS app
    
    That makes it much easier to use the same Xcode project file when
    building against different versions of LibreOffice, with different ICU
    data files. The configure script in the "online" directory creates a
    ICU.dat symlink to the ICU data file (with a name like icudt60l.dat in
    a 6.0 branch, or icudt63l.dat in a current master) in the LibreOffice
    build directory, and that is what gets copied into the app bundle.
    
    Change-Id: Ibe2ca85f66e2d4973d6ba3c52fc4d60e113d8f9a

diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 040218c1e314..fca76934088c 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -4103,9 +4103,9 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char
     // to use that.
     NSString *bundlePath = [[NSBundle mainBundle] bundlePath];
 
-    int fd = open([[bundlePath stringByAppendingPathComponent:@U_ICUDATA_NAME".dat"] UTF8String], O_RDONLY);
+    int fd = open([[bundlePath stringByAppendingPathComponent:@"ICU.dat"] UTF8String], O_RDONLY);
     if (fd == -1)
-        NSLog(@"Could not open ICU data file %s", [[bundlePath stringByAppendingPathComponent:@U_ICUDATA_NAME".dat"] UTF8String]);
+        NSLog(@"Could not open ICU data file %s", [[bundlePath stringByAppendingPathComponent:@"ICU.dat"] UTF8String]);
     else
     {
         struct stat st;


More information about the Libreoffice-commits mailing list