diff options
author | Koen Kooi <koen@openembedded.org> | 2007-12-05 08:24:16 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2007-12-05 08:24:16 +0000 |
commit | 736650b5924b5c1ce37512ae98a836a50acf0d6a (patch) | |
tree | 4a2011fa8188a92fd75b9c10f6580de49a5397fd /packages/glibc | |
parent | e6b68ae095a61a271a1191e4fc0945042bc4a754 (diff) |
glibc-package.bbclass: merge LOCALE_UTF8_ONLY from poky
Diffstat (limited to 'packages/glibc')
-rw-r--r-- | packages/glibc/glibc-package.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/glibc/glibc-package.bbclass b/packages/glibc/glibc-package.bbclass index 1f14bb83fb..b96aae37b9 100644 --- a/packages/glibc/glibc-package.bbclass +++ b/packages/glibc/glibc-package.bbclass @@ -220,10 +220,13 @@ python package_do_split_gconvs () { dot_re = re.compile("(.*)\.(.*)") # Collate the locales by base and encoding + utf8_only = int(bb.data.getVar('LOCALE_UTF8_ONLY', d, 1) or 0) encodings = {} for l in supported: l = l[:-1] (locale, charset) = l.split(" ") + if utf8_only and charset != 'UTF-8': + continue m = dot_re.match(locale) if m: locale = m.group(1) |