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
This commit is contained in:
committed by
Tor Lillqvist
parent
9cdcc1b7df
commit
bee3790d54
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user