Chromium Code Reviews| Index: base/i18n/icu_util.cc |
| diff --git a/base/i18n/icu_util.cc b/base/i18n/icu_util.cc |
| index e5c698475e4ad9f7710ce3edc3c2a0d1839ba38b..84a0ba6c1da1d06d025a15be2c6043527cefa334 100644 |
| --- a/base/i18n/icu_util.cc |
| +++ b/base/i18n/icu_util.cc |
| @@ -30,7 +30,10 @@ |
| #define ICU_UTIL_DATA_STATIC 2 |
| #if ICU_UTIL_DATA_IMPL == ICU_UTIL_DATA_FILE |
| -#define ICU_UTIL_DATA_FILE_NAME "icudt" U_ICU_VERSION_SHORT "l.dat" |
| +// Use an unversioned file name to simplify a icu version update down the road. |
| +// No need to change the filename in multiple places (gyp files, windows |
| +// build pkg configurations, etc). |
| +#define ICU_UTIL_DATA_FILE_NAME "icudtl.dat" |
|
Mark Mentovai
2013/12/18 19:04:04
For my own edification: what’s the l stand for?
jungshik at Google
2013/12/18 19:53:19
'l' is for Little Endian.
I got this part out of
|
| #elif ICU_UTIL_DATA_IMPL == ICU_UTIL_DATA_SHARED |
| #define ICU_UTIL_DATA_SYMBOL "icudt" U_ICU_VERSION_SHORT "_dat" |
| #if defined(OS_WIN) |
| @@ -86,7 +89,6 @@ bool InitializeICU() { |
| // be released. |
| CR_DEFINE_STATIC_LOCAL(base::MemoryMappedFile, mapped_file, ()); |
| if (!mapped_file.IsValid()) { |
| - // Assume it is in the framework bundle's Resources directory. |
| #if !defined(OS_MACOSX) |
| // For now, expect the data file to be alongside the executable. |
| // This is sufficient while we work on unit tests, but will eventually |
| @@ -96,6 +98,7 @@ bool InitializeICU() { |
| DCHECK(path_ok); |
| data_path = data_path.AppendASCII(ICU_UTIL_DATA_FILE_NAME); |
| #else |
| + // Assume it is in the framework bundle's Resources directory. |
| FilePath data_path = |
| base::mac::PathForFrameworkBundleResource(CFSTR(ICU_UTIL_DATA_FILE_NAME)); |
| if (data_path.empty()) { |