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

非中文系统输入框方框修正 #42

Open
zx900930 opened this issue Jan 5, 2021 · 7 comments
Open

非中文系统输入框方框修正 #42

zx900930 opened this issue Jan 5, 2021 · 7 comments

Comments

@zx900930
Copy link

zx900930 commented Jan 5, 2021

需要在env 里加上LC_ALL=zh_CN.UTF-8,建议加到run.sh里面去不然每次更新都得手动修改
例如:

Run()
{
    extract_archive "$ARCHIVE_FILE_DIR/helper_archive.7z" "$ARCHIVE_FILE_DIR/helper_archive.md5sum" "$SPECIFY_SHELL_DIR"

    if [ -n "$PATCH_LOADER_ENV" ] && [ -n "$EXEC_PATH" ];then
        export $PATCH_LOADER_ENV
    fi

    if [ -n "$EXEC_PATH" ];then
        if [ ! -f "$WINEPREFIX/reinstalled" ];then
            touch $WINEPREFIX/reinstalled
            env LC_ALL=zh_CN.UTF-8 WINEDLLOVERRIDES="winemenubuilder.exe=d" $START_SHELL_PATH $BOTTLENAME $APPVER "$QQ_INSTALLER_PATH" "$@"
        else
            env LC_ALL=zh_CN.UTF-8 $START_SHELL_PATH $BOTTLENAME $APPVER "$EXEC_PATH" "$@"
        fi
    else
        env LC_ALL=zh_CN.UTF-8 $START_SHELL_PATH $BOTTLENAME $APPVER "uninstaller.exe" "$@"
    fi
}

还有如果安装了 ttf-ms-win10-zh_cn,QQ字体会变成非常丑陋的宋体reg里得修正一下。

@vufa
Copy link
Owner

vufa commented Jan 5, 2021

感谢帮助,字体显示为方框的问题已经修复:2e595a3

@Asutorufa
Copy link

感谢帮助,字体显示为方框的问题已经修复:2e595a3

加上后我这运行会出问题

touch: cannot touch '/home/xxx/.deepinwine/Deepin-QQ/reinstalled': No such file or directory
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8)
Run Deepin-QQ 9.3.2deepin14 c:/Program Files/Tencent/PCQQ2020-9.4.2.27658.exe
run Deepin-QQ progress pid 
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (zh_CN.UTF-8)

(process:53436): Gtk-WARNING **: 12:24:09.167: Locale not supported by C library.
        Using the fallback 'C' locale.
WINDOW DECORATIONS RELOADED
WINDOW DECORATIONS RELOADED
This option is not available. Please see --help for all possible usages.

(process:53444): Gtk-WARNING **: 12:24:09.501: Locale not supported by C library.
        Using the fallback 'C' locale.
WINDOW DECORATIONS RELOADED
WINDOW DECORATIONS RELOADED
This option is not available. Please see --help for all possible usages.

@vufa
Copy link
Owner

vufa commented Jan 8, 2021

@Asutorufa 应该是在安装系统过程中遗漏了生成 locale 过程,参照 archlinux wiki,在 /etc/locale.gen 中取消 zh_CN.UTF-8 UTF-8 前的注释,再运行命令:

sudo locale-gen

@Asutorufa
Copy link

@Asutorufa 应该是在安装系统过程中遗漏了生成 locale 过程,参照 archlinux wiki,在 /etc/locale.gen 中取消 zh_CN.UTF-8 UTF-8 前的注释,再运行命令:

sudo locale-gen

好的, 好了, 谢谢.

@fhh200000
Copy link

fhh200000 commented Jan 28, 2021

需要在env 里加上LC_ALL=zh_CN.UTF-8,建议加到run.sh里面去不然每次更新都得手动修改
例如:

Run()
{
    extract_archive "$ARCHIVE_FILE_DIR/helper_archive.7z" "$ARCHIVE_FILE_DIR/helper_archive.md5sum" "$SPECIFY_SHELL_DIR"

    if [ -n "$PATCH_LOADER_ENV" ] && [ -n "$EXEC_PATH" ];then
        export $PATCH_LOADER_ENV
    fi

    if [ -n "$EXEC_PATH" ];then
        if [ ! -f "$WINEPREFIX/reinstalled" ];then
            touch $WINEPREFIX/reinstalled
            env LC_ALL=zh_CN.UTF-8 WINEDLLOVERRIDES="winemenubuilder.exe=d" $START_SHELL_PATH $BOTTLENAME $APPVER "$QQ_INSTALLER_PATH" "$@"
        else
            env LC_ALL=zh_CN.UTF-8 $START_SHELL_PATH $BOTTLENAME $APPVER "$EXEC_PATH" "$@"
        fi
    else
        env LC_ALL=zh_CN.UTF-8 $START_SHELL_PATH $BOTTLENAME $APPVER "uninstaller.exe" "$@"
    fi
}

还有如果安装了 ttf-ms-win10-zh_cn,QQ字体会变成非常丑陋的宋体reg里得修正一下。

请问能告知一下如何修正字体吗?
我尝试了Ubuntu论坛里的一个通用的字体替换方案,似乎效果不佳。
谢谢!

@xade93
Copy link

xade93 commented Jul 7, 2021

感谢帮助,字体显示为方框的问题已经修复:2e595a3

今天刚进行的安装,从 deepin.com.qq.im.light 切换过来的,locale 是 en_US.UTF.8, 还是有同样的问题。
pacman -Q | grep qq => com.qq.im.deepin 9.3.2-20

@choyy
Copy link

choyy commented Oct 13, 2021

需要在env 里加上LC_ALL=zh_CN.UTF-8,建议加到run.sh里面去不然每次更新都得手动修改
例如:

Run()
{
    extract_archive "$ARCHIVE_FILE_DIR/helper_archive.7z" "$ARCHIVE_FILE_DIR/helper_archive.md5sum" "$SPECIFY_SHELL_DIR"

    if [ -n "$PATCH_LOADER_ENV" ] && [ -n "$EXEC_PATH" ];then
        export $PATCH_LOADER_ENV
    fi

    if [ -n "$EXEC_PATH" ];then
        if [ ! -f "$WINEPREFIX/reinstalled" ];then
            touch $WINEPREFIX/reinstalled
            env LC_ALL=zh_CN.UTF-8 WINEDLLOVERRIDES="winemenubuilder.exe=d" $START_SHELL_PATH $BOTTLENAME $APPVER "$QQ_INSTALLER_PATH" "$@"
        else
            env LC_ALL=zh_CN.UTF-8 $START_SHELL_PATH $BOTTLENAME $APPVER "$EXEC_PATH" "$@"
        fi
    else
        env LC_ALL=zh_CN.UTF-8 $START_SHELL_PATH $BOTTLENAME $APPVER "uninstaller.exe" "$@"
    fi
}

还有如果安装了 ttf-ms-win10-zh_cn,QQ字体会变成非常丑陋的宋体reg里得修正一下。

请问能告知一下如何修正字体吗? 我尝试了Ubuntu论坛里的一个通用的字体替换方案,似乎效果不佳。 谢谢!

https://bbs.deepin.org/zh/post/213530?offset=0&postId=1269543

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

6 participants