Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

archlinux 上控制中心语言列表为空 #22

Closed
fasheng opened this issue Jan 17, 2016 · 5 comments
Closed

archlinux 上控制中心语言列表为空 #22

fasheng opened this issue Jan 17, 2016 · 5 comments

Comments

@fasheng
Copy link
Contributor

fasheng commented Jan 17, 2016

目前 archlinux 因为 glibc 默认没有按照该文件导致控制中心语言列表为空,无法切换语言。

通过查看 PKGBUILD,发现 archlinux 上 glibc 直接把 SUPPORTED 文件写入到了 /etc/locale.gen

  # create /etc/locale.gen
  install -m644 ${srcdir}/locale.gen.txt ${pkgdir}/etc/locale.gen
  sed -e '1,3d' -e 's|/| |g' -e 's|\\| |g' -e 's|^|#|g' \
    ${srcdir}/glibc-${pkgver}/localedata/SUPPORTED >> ${pkgdir}/etc/locale.gen

https://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/glibc

目前正在想办法修复这个问题,有一个疑问是我们自己有没有更改过 SUPPORTED 文件?
@leaeasy @jouyouyun

martyr-deepin/arch-deepin#212 (comment)

@fasheng
Copy link
Contributor Author

fasheng commented Jan 26, 2016

经调试,确定和下面的提交有关,奇怪的是没有看到 SUPPORTED 文件相关的变更
linuxdeepin/dde-daemon@33738a0

@jouyouyun

@fasheng fasheng changed the title 关于 /usr/share/i18n/SUPPORTED 文件的问题 archlinux 上控制中心语言列表为空 Jan 26, 2016
@leaeasy
Copy link
Contributor

leaeasy commented Jan 27, 2016

没有改动过这个文件,在/etc/locale.gen 前面有关于这两个文件的解释

@leaeasy
Copy link
Contributor

leaeasy commented Jan 27, 2016

This file lists locales that you wish to have built. You can find a list
of valid supported locales at /usr/share/i18n/SUPPORTED, and you can add
user defined locales to /usr/local/share/i18n/SUPPORTED. If you change
this file, you need to rerun locale-gen.

@jouyouyun
Copy link
Contributor

以前是直接从 support_languages.json 中获取支持的语言列表的,没有用到 SUPPORTED 这个文件。

现在是 support_languages.json 这个文件会给出所有 locale 及其的描述,从 SUPPORTED 文件中获取到系统当前支持的语言列表。

support_languages.json 文件的功能变了

@fasheng
Copy link
Contributor Author

fasheng commented Jan 28, 2016

已经修复,下游等待 dde-api 3.0.4 新版本即可,同时 dde-daemon 需要 rebuild
https://cr.deepin.io/#/c/10635/

@fasheng fasheng closed this as completed Jan 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants