-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLDR-17014 Illustrate/fix extra-path bug #4256
base: main
Are you sure you want to change the base?
Conversation
-Writing a CLDRFile to XML appears to fail for extra paths such as this metazone path
The same test failure occurs here that I saw locally:
The failure occurs in this code in DataDrivenSTTestHandler.java:
The error message includes "f Expected from XML ...". The failure happens where it calls
I think Notice this old comment in CLDRFile:
In general it may be problematic that |
-Use cldrFile.fullIterable.forEach instead of xmlSource.forEach in CldrXmlWriter
The second commit to this PR fixes the test failure introduced by the first commit |
Testing in ST, without the changes in this PR, suggests that if I vote (as Admin) for a value for an extra path that had no value, and then I generate VXML, that path fails to be written. However, if I restart ST between voting and generating VXML, the path is written. Seemingly loadVoteValues (which calls internalSetVoteForValue, which calls makeSureInPathsForFile) in STFactory.java accounts for loading the votes when a locale is first opened after starting ST. It's maybe not surprising then that the bug hasn't been evident before when generating VXML. |
@macchiati shall I switch the ticket from Design to Accepted, and merge this? Seems like the design -- to handle language paths similarly to timezone paths, as extra paths -- has turned out to be viable, this bug fix being the last hang-up I'm aware of. The other PR, with the lion's share of changes, could then be merged after a little more testing: #4254 |
-Writing a CLDRFile to XML failed for extra paths such as this metazone path as shown by the new test in TestSTFactory.xml
-Using cldrFile.fullIterable.forEach instead of xmlSource.forEach in CldrXmlWriter fixes the bug
CLDR-17014
ALLOW_MANY_COMMITS=true