您尚未登录。

#1 2021-10-17 17:28:34

cmacckk
会员
注册时间: 2021-10-16
帖子: 14

使用官方推荐的wine-for-wechat和wine-wechat包安装微信中文乱码

π ~ ❯ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

如何修改配置文件


lazy boy,lazy boy,lazy all the day

离线

#2 2021-10-17 17:47:34

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: 使用官方推荐的wine-for-wechat和wine-wechat包安装微信中文乱码

请编辑 /etc/locale.gen 文件,启动 zh_CN.UTF-8,然后执行 sudo locale-gen。

离线

#3 2021-10-17 19:07:12

cmacckk
会员
注册时间: 2021-10-16
帖子: 14

Re: 使用官方推荐的wine-for-wechat和wine-wechat包安装微信中文乱码

可以保持使用LANG=en_US.UTF-8,修改配置文件防止乱码吗


lazy boy,lazy boy,lazy all the day

离线

#4 2021-10-17 19:45:57

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: 使用官方推荐的wine-for-wechat和wine-wechat包安装微信中文乱码

cmacckk 说:

可以保持使用LANG=en_US.UTF-8,修改配置文件防止乱码吗

可以。 wine-wechat-setup 会给微信设置 zh_CN.UTF-8,不影响你其它的程序。但前提是你得启用这个 locale。

离线

#5 2021-10-17 20:06:07

cmacckk
会员
注册时间: 2021-10-16
帖子: 14

Re: 使用官方推荐的wine-for-wechat和wine-wechat包安装微信中文乱码

我在安装系统的时候已经启用了/etc/locale.conf的zh_CN.UTF-8
我使用安装了wine-wechat,然后进入微信官网下载了WechatSetup.exe,版本号3.4.0
最后使用命令wine64 WechatSetup.exe
英文显示正常,中文就是一个个方框乱码
抱歉刚才问题没描述清楚

现在打算使用deepin-wine-wechat
但使用yay -S deepin-wine-wechat时报错

 π ~ ❯ yay -S deepin-wine-wechat
:: Checking for conflicts...
:: Checking for inner conflicts...
[Aur:1]  deepin-wine-wechat-3.3.5.50-1

  1 deepin-wine-wechat               (Build Files Exist)
==> Packages to cleanBuild?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: PKGBUILD up to date, Skipping (1/0): deepin-wine-wechat
  1 deepin-wine-wechat               (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 
:: (1/1) Parsing SRCINFO: deepin-wine-wechat
==> Making package: deepin-wine-wechat 3.3.5.50-1 (Sun 17 Oct 2021 07:54:53 PM CST)
==> Retrieving sources...
  -> Found com.qq.weixin.deepin_3.2.1.154deepin13_i386.deb
  -> Found WeChatSetup-3.3.5.50.exe
  -> Found run.sh
  -> Found reg.patch
==> Validating source files with md5sums...
    com.qq.weixin.deepin_3.2.1.154deepin13_i386.deb ... Passed
    WeChatSetup-3.3.5.50.exe ... FAILED
    run.sh ... Passed
    reg.patch ... Passed
==> ERROR: One or more files did not pass the validity check!
 -> error downloading sources: deepin-wine-wechat 
	 context: exit status 1 
	 

==> Making package: deepin-wine-wechat 3.3.5.50-1 (Sun 17 Oct 2021 07:54:54 PM CST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found com.qq.weixin.deepin_3.2.1.154deepin13_i386.deb
  -> Found WeChatSetup-3.3.5.50.exe
  -> Found run.sh
  -> Found reg.patch
==> Validating source files with md5sums...
    com.qq.weixin.deepin_3.2.1.154deepin13_i386.deb ... Passed
    WeChatSetup-3.3.5.50.exe ... FAILED
    run.sh ... Passed
    reg.patch ... Passed
==> ERROR: One or more files did not pass the validity check!
 -> error making: deepin-wine-wechat

看报错信息是WeChatSetup-3.3.5.50.exe校验失败
是因为微信更新了的缘故吗
同时参考了deepin-wine-wechat-arch
安装包安装的方式也是同样的报错


lazy boy,lazy boy,lazy all the day

离线

#6 2021-10-17 20:36:04

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: 使用官方推荐的wine-for-wechat和wine-wechat包安装微信中文乱码

cmacckk 说:

我在安装系统的时候已经启用了/etc/locale.conf的zh_CN.UTF-8
我使用安装了wine-wechat,然后进入微信官网下载了WechatSetup.exe,版本号3.4.0
最后使用命令wine64 WechatSetup.exe
英文显示正常,中文就是一个个方框乱码
抱歉刚才问题没描述清楚

你在干什么?WechatSetup.exe 应该交给 wechat 命令来处理的。

离线

#7 2021-10-17 20:53:16

cmacckk
会员
注册时间: 2021-10-16
帖子: 14

Re: 使用官方推荐的wine-for-wechat和wine-wechat包安装微信中文乱码

wechat WechatSetup.exe

这么跑?


lazy boy,lazy boy,lazy all the day

离线

#8 2021-10-17 21:58:06

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: 使用官方推荐的wine-for-wechat和wine-wechat包安装微信中文乱码

cmacckk 说:
wechat WechatSetup.exe

这么跑?

……

如果你要用命令行,请 wechat --help 查看用法。如果你点的图标,它会弹窗口让你选文件的。

离线

#9 2021-10-17 22:03:38

cmacckk
会员
注册时间: 2021-10-16
帖子: 14

Re: 使用官方推荐的wine-for-wechat和wine-wechat包安装微信中文乱码

嗯嗯 感谢感谢


lazy boy,lazy boy,lazy all the day

离线

#10 2021-10-17 22:35:17

cmacckk
会员
注册时间: 2021-10-16
帖子: 14

Re: 使用官方推荐的wine-for-wechat和wine-wechat包安装微信中文乱码

最后解决了这个问题
deepin-wine-wechat-arch
用安装包安装目录下的方法
cd deepin-wine-wechat-arch之后
π deepin-wine-wechat-arch action ❯ md5sum WeChatSetup-3.3.5.50.exe
a9b96f879714fca41f03c84714c965ec WeChatSetup-3.3.5.50.exe
更改PKGBUILD文件
md5sums第二个值修改为a9b96f879714fca41f03c84714c965ec保存
然后makepkg -si即可


lazy boy,lazy boy,lazy all the day

离线

#11 2021-10-17 22:49:50

sukanka
会员
所在地: Amoy, China
注册时间: 2020-04-05
帖子: 170
个人网站

Re: 使用官方推荐的wine-for-wechat和wine-wechat包安装微信中文乱码

cmacckk 说:

最后解决了这个问题
deepin-wine-wechat-arch
用安装包安装目录下的方法
cd deepin-wine-wechat-arch之后

`updpkgsums` 即可。

离线

#12 2021-10-17 23:48:56

cmacckk
会员
注册时间: 2021-10-16
帖子: 14

Re: 使用官方推荐的wine-for-wechat和wine-wechat包安装微信中文乱码

sukanka 说:

`updpkgsums` 即可。

学到了学到了


lazy boy,lazy boy,lazy all the day

离线

页脚