diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-12-04 18:38:30 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-12-04 18:38:30 +0000 |
commit | d41df711cdb82ee9bf3e99d67f3a406b998a4088 (patch) | |
tree | 28527a58c7a246627c565b700dc59234c6ace3c7 | |
parent | e9f81f1d31223c14513ed2fc9276bf0564618a6d (diff) | |
download | openembedded-core-d41df711cdb82ee9bf3e99d67f3a406b998a4088.tar.gz openembedded-core-d41df711cdb82ee9bf3e99d67f3a406b998a4088.tar.bz2 openembedded-core-d41df711cdb82ee9bf3e99d67f3a406b998a4088.tar.xz openembedded-core-d41df711cdb82ee9bf3e99d67f3a406b998a4088.zip |
glibc: allow to use UTF-8 locales only (enable with LOCALE_UTF8_ONLY=1)
This code limits generation of locales to UTF-8 ones only. Other encodings
will be ignored.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3308 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r-- | meta/packages/glibc/glibc-package.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/packages/glibc/glibc-package.bbclass b/meta/packages/glibc/glibc-package.bbclass index 01b55f3b3..d7ff64d7e 100644 --- a/meta/packages/glibc/glibc-package.bbclass +++ b/meta/packages/glibc/glibc-package.bbclass @@ -212,10 +212,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) |