summaryrefslogtreecommitdiff
path: root/meta/packages/glibc/glibc-package.bbclass
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2007-12-04 18:38:30 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2007-12-04 18:38:30 +0000
commitd41df711cdb82ee9bf3e99d67f3a406b998a4088 (patch)
tree28527a58c7a246627c565b700dc59234c6ace3c7 /meta/packages/glibc/glibc-package.bbclass
parente9f81f1d31223c14513ed2fc9276bf0564618a6d (diff)
downloadopenembedded-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
Diffstat (limited to 'meta/packages/glibc/glibc-package.bbclass')
-rw-r--r--meta/packages/glibc/glibc-package.bbclass3
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)