diff options
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) |