https://bugzilla.redhat.com/show_bug.cgi?id=1317385
Bug ID: 1317385 Summary: Please fixes the generated ~/.i18n file Product: Fedora Version: 23 Component: fonts-tweak-tool Assignee: tagoh@redhat.com Reporter: pwu@redhat.com QA Contact: extras-qa@fedoraproject.org CC: i18n-bugs@lists.fedoraproject.org, kent.neo@gmail.com, petersen@redhat.com, pwu@redhat.com, tagoh@redhat.com
Description of problem:
The content of .i18n file generated by fonts-tweak-tool is: FC_LANG=zh-CN
maybe good to add export for .i18n file: export FC_LANG=zh-CN
Version-Release number of selected component (if applicable): fonts-tweak-tool-0.3.2-8.fc23.x86_64
How reproducible:
Steps to Reproduce: 1. Set "Chinese (P.R. of China)" in fonts-tweak-tool "Language Ordering" 2. Log in as English locale
Actual results: gedit seems to use Traditional Chinese fonts for the character "骨"
Expected results: gedit uses Simplified Chinese fonts for the character "骨"
Additional info:
https://bugzilla.redhat.com/show_bug.cgi?id=1317385
Akira TAGOH tagoh@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan@jonmasters.org, | |lnykryn@redhat.com, | |zbyszek@in.waw.pl Component|fonts-tweak-tool |initscripts Assignee|tagoh@redhat.com |lnykryn@redhat.com
--- Comment #1 from Akira TAGOH tagoh@redhat.com --- .i18n file is usually loaded from both scripts of /etc/profile.d/lang.sh and /etc/profile.d/lang.csh and it has to be portable. adding "export key=val" thing into .i18n breaks things on csh. so adding similar thing of the following line in /etc/profile.d/lang.csh may be required for lang.sh as well:
if ( -f "$HOME/.i18n" ) then eval `sed -ne 's|^[[:blank:]]*([^#=]{1,})=([^=]*)|setenv \1 \2;|p' "$HOME/.i18n"` set sourced=1 endif
https://bugzilla.redhat.com/show_bug.cgi?id=1317385
--- Comment #2 from Peng Wu pwu@redhat.com --- Sorry, I am not familiar with shell scripts.
Is the following script portable?
FC_LANG=zh-CN export FC_LANG
https://bugzilla.redhat.com/show_bug.cgi?id=1317385
--- Comment #3 from Akira TAGOH tagoh@redhat.com --- Created attachment 1140797 --> https://bugzilla.redhat.com/attachment.cgi?id=1140797&action=edit proposed patch
https://bugzilla.redhat.com/show_bug.cgi?id=1317385
--- Comment #4 from Akira TAGOH tagoh@redhat.com --- tested as the following: % sh -c 'echo "FOO=bar" > ~/.i18n && . initscripts-9.65/lang.sh; sh -c printenv |grep FOO; rm ~/.i18n' FOO=bar % sh -c 'echo "FOO=bar" > ~/.i18n && . initscripts-9.65.orig/lang.sh; sh -c printenv |grep FOO; rm ~/.i18n' %
https://bugzilla.redhat.com/show_bug.cgi?id=1317385
--- Comment #5 from Fedora End Of Life jkurik@fedoraproject.org --- This message is a reminder that Fedora 23 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 23. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '23'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 23 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=1317385
Fedora End Of Life jkurik@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution|--- |EOL Last Closed| |2016-12-20 14:26:23
--- Comment #6 from Fedora End Of Life jkurik@fedoraproject.org --- Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug.
If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug.
Thank you for reporting this bug and we are sorry it could not be fixed.
https://bugzilla.redhat.com/show_bug.cgi?id=1317385
--- Comment #7 from Jens Petersen petersen@redhat.com --- Should this not be re-opened? Or does it not affect F24+?
https://bugzilla.redhat.com/show_bug.cgi?id=1317385
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |NEW Resolution|EOL |--- Summary|Please fixes the generated |Please fix the generated |~/.i18n file |~/.i18n file Keywords| |Reopened
--- Comment #8 from Jens Petersen petersen@redhat.com --- Is it not better though to modify lang.sh and lang.csh to export FC_LANG? I don't think font-tweak-tool should put "export" in ".i18n".
https://bugzilla.redhat.com/show_bug.cgi?id=1317385
Jens Petersen petersen@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|23 |26 Summary|Please fix the generated |lang.sh and lang.csh should |~/.i18n file |export FC_LANG
https://bugzilla.redhat.com/show_bug.cgi?id=1317385
--- Comment #9 from Akira TAGOH tagoh@redhat.com --- (In reply to Jens Petersen from comment #8)
Is it not better though to modify lang.sh and lang.csh to export FC_LANG?
If we want to restrict the env vars to export, that would be an option yes.
https://bugzilla.redhat.com/show_bug.cgi?id=1317385
--- Comment #10 from Zbigniew Jędrzejewski-Szmek zbyszek@in.waw.pl --- Is there any documentation for FC_LANG? I assume it is font-config-language, but I cannot find any pertinent docs.
https://bugzilla.redhat.com/show_bug.cgi?id=1317385
--- Comment #11 from Akira TAGOH tagoh@redhat.com --- Apparently not. but you're right. it is the env var to determine the default language in fontconfig.
https://bugzilla.redhat.com/show_bug.cgi?id=1317385
David Kaspar [Dee'Kej] dkaspar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |dkaspar@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1317385
--- Comment #13 from Akira TAGOH tagoh@redhat.com --- docs for FC_LANG https://www.freedesktop.org/software/fontconfig/fontconfig-user.html#AEN262
https://bugzilla.redhat.com/show_bug.cgi?id=1317385
David Kaspar [Dee'Kej] dkaspar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|unspecified |medium Hardware|Unspecified |All Version|26 |rawhide Assignee|lnykryn@redhat.com |dkaspar@redhat.com OS|Unspecified |Linux Severity|unspecified |medium
https://bugzilla.redhat.com/show_bug.cgi?id=1317385
Satyabrata Maitra smaitra@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |i18n
https://bugzilla.redhat.com/show_bug.cgi?id=1317385
PnT Account Manager pnt-expunge@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|dkaspar@redhat.com |lnykryn@redhat.com
i18n-bugs@lists.fedoraproject.org