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 /meta | |
parent | e9f81f1d31223c14513ed2fc9276bf0564618a6d (diff) | |
download | poky-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.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 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) |