Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Issue 2812943003: Update trim_data to deal with locale fallback failure for unit (Closed)

Created:
3 years, 8 months ago by jungshik at Google
Modified:
3 years, 8 months ago
Reviewers:
Daniel Erat
CC:
chromium-reviews, riesa
Target Ref:
refs/heads/master
Project:
icu
Visibility:
Public.

Description

Update trim_data to deal with locale fallback failure for units Delete empty units,units{Narrow,Short} blocks after trimming units data. Empty units* blocks in en_GB and a few other locales after trimming causes ICU to fail to fall back to get the duration data for those locales. In addition, fix source/data/translit/root_subset.txt. Rule*Ids block has to be present even though it's empty. When dropping Hans-Hant transform rules, root_subset.txt was changed to be completely empty, which broke "components_unittests --g_test_filter=AutofillProfileComparato*" . With these changes, regenerate ICU data files. The size is slightly smaller. android/icudtl.dat 6573872 => 6573792 common/icudt*dat 10130560 => 10130480 BUG=707515, 677043, 684609 TEST=components_unittests --gtest_filter=AutofillProfileComparato* TEST=ui_base_unittests --gtest_filter=L10nUtilTest.TimeDurationForm* R=derat@chromium.org Committed: https://chromium.googlesource.com/chromium/deps/icu/+/d5c238dcc2e801210749f3bb421b9227fe1c0948

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -1 line) Patch
M android/icudtl.dat View Binary file 0 comments Download
M common/icudtb.dat View Binary file 0 comments Download
M common/icudtl.dat View Binary file 0 comments Download
M scripts/trim_data.sh View 2 chunks +9 lines, -0 lines 2 comments Download
M source/data/translit/root_subset.txt View 1 chunk +6 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 14 (6 generated)
jungshik at Google
Dan, can you take a look? Thanks (btw, make_data.sh failure you experienced was already taken ...
3 years, 8 months ago (2017-04-11 20:06:07 UTC) #5
jungshik at Google
3 years, 8 months ago (2017-04-11 20:06:40 UTC) #6
Daniel Erat
On 2017/04/11 20:06:40, jungshik at Google wrote:
3 years, 8 months ago (2017-04-11 21:08:05 UTC) #7
Daniel Erat
https://codereview.chromium.org/2812943003/diff/1/scripts/trim_data.sh File scripts/trim_data.sh (right): https://codereview.chromium.org/2812943003/diff/1/scripts/trim_data.sh#newcode194 scripts/trim_data.sh:194: /^ units(|Narrow|Short)\{\n \}/ d sorry, my sed is a ...
3 years, 8 months ago (2017-04-11 21:18:10 UTC) #8
jungshik at Google
Thanks for taking a look. https://codereview.chromium.org/2812943003/diff/1/scripts/trim_data.sh File scripts/trim_data.sh (right): https://codereview.chromium.org/2812943003/diff/1/scripts/trim_data.sh#newcode194 scripts/trim_data.sh:194: /^ units(|Narrow|Short)\{\n \}/ d ...
3 years, 8 months ago (2017-04-11 21:53:18 UTC) #9
Daniel Erat
lgtm thanks, makes sense! i didn't realize that sed doesn't have easier support for multiple-line ...
3 years, 8 months ago (2017-04-11 21:55:05 UTC) #10
jungshik at Google
Committed patchset #1 (id:1) manually as d5c238dcc2e801210749f3bb421b9227fe1c0948 (presubmit successful).
3 years, 8 months ago (2017-04-11 21:59:07 UTC) #13
jungshik at Google
3 years, 8 months ago (2017-04-11 21:59:18 UTC) #14
Message was sent while issue was closed.
On 2017/04/11 21:55:05, Daniel Erat wrote:
> lgtm
> 
> thanks, makes sense! i didn't realize that sed doesn't have easier support for
> multiple-line matching.

Thanks. :-)

Powered by Google App Engine
This is Rietveld 408576698