summaryrefslogtreecommitdiffstats
path: root/meta
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
parente9f81f1d31223c14513ed2fc9276bf0564618a6d (diff)
downloadpoky-d41df711cdb82ee9bf3e99d67f3a406b998a4088.tar.gz
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')
-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 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 () {
212 dot_re = re.compile("(.*)\.(.*)") 212 dot_re = re.compile("(.*)\.(.*)")
213 213
214 # Collate the locales by base and encoding 214 # Collate the locales by base and encoding
215 utf8_only = int(bb.data.getVar('LOCALE_UTF8_ONLY', d, 1) or 0)
215 encodings = {} 216 encodings = {}
216 for l in supported: 217 for l in supported:
217 l = l[:-1] 218 l = l[:-1]
218 (locale, charset) = l.split(" ") 219 (locale, charset) = l.split(" ")
220 if utf8_only and charset != 'UTF-8':
221 continue
219 m = dot_re.match(locale) 222 m = dot_re.match(locale)
220 if m: 223 if m:
221 locale = m.group(1) 224 locale = m.group(1)