Merge pull request #3865 from Algunenano/master_icu_data

ICU DATA: Default to icu-config if u_getDataDirectory fails
This commit is contained in:
Artem Pavlenko 2018-02-26 15:13:08 +01:00 committed by GitHub
commit 3ebbf2075f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -831,9 +831,16 @@ int main() {
context.did_show_result=1
if ret[0]:
context.Result('u_getDataDirectory returned %s' % ret[1])
return ret[1].strip()
else:
context.Result('Failed to detect (mapnik-config will have null value)')
return ret[1].strip()
ret = call("icu-config --icudatadir", silent=True)
if ret:
context.Result('icu-config returned %s' % ret)
return ret
else:
context.Result('Failed to detect (mapnik-config will have null value)')
return ''
def CheckGdalData(context, silent=False):