From d41df711cdb82ee9bf3e99d67f3a406b998a4088 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Tue, 4 Dec 2007 18:38:30 +0000 Subject: 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 --- meta/packages/glibc/glibc-package.bbclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/packages') diff --git a/meta/packages/glibc/glibc-package.bbclass b/meta/packages/glibc/glibc-package.bbclass index 01b55f3b33..d7ff64d7e9 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) -- cgit v1.2.3-54-g00ecf