Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

[Intl/ Icu] countries data not always available #8442

shieldo opened this Issue Jul 8, 2013 · 3 comments


None yet
3 participants

shieldo commented Jul 8, 2013

I'm cross-posting an issue in the symfony/icu project: https://github.com/symfony/Icu/issues/2

I'm finding that countries data is not always available when using Symfony 2.3. In my particular install, I have ICU 4.6 installed, with symfony/icu 1.1 (1.2, incidentally, does not work either), and I cannot access country data - therefore the Country field fails, etc. I don't know whether this is a commonly-experienced issue, but it should always be possible to access this data through the Intl component.


shieldo commented Jul 10, 2013

Have also tried this with PHP 5.4.16 installed using Homebrew (on OS X), with the intl extension compiled against ICU 51.1 (and using symfony/icu 1.1), and the country data is not accessible using this configuration either. (Previously I was using the Liip OS X build (5.4.16).)

I'm also getting empty country fields when using symfony/icu 1.1.* - Works fine with 1.2.* on dev for me though.


ICU version =>
ICU Data version => 4.8.1


ICU version => 4.2.1

shieldo commented Jul 24, 2013

It's been established by @kriswillis that this has to do with the country data being compiled against the language signifiers (e.g. en), and the RegionBundle class in the Intl component not merging the fallback locale for lookups when the locale has a country signifier, e.g. en_GB etc. PR forthcoming.

fabpot added a commit that referenced this issue Sep 11, 2013

merged branch shieldo/country_fallback_locale (PR #8564)
This PR was merged into the 2.3 branch.


[Intl] made RegionBundle merge fallback data if using a country-specific locale

See #8442 and symfony/Icu#2.

Essentially, country data fetches from the Intl component do not currently work when using a locale with a country specifier, e.g. `fr_FR`.  This change forces a merge on the data against the root language locale, thus making country data available for such locales.


52d8676 [Intl] made RegionBundle and LanguageBundle merge fallback data when using a country-specific locale

@fabpot fabpot closed this Sep 11, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment