scottyhardy / docker-wine

Docker image that includes Wine and Winetricks for running Windows applications on Linux and macOS
MIT License
906 stars 158 forks source link

Suggest to have better support for CJK language on RDP #147

Open kinetixjohnsonlee opened 2 years ago

kinetixjohnsonlee commented 2 years ago

Is your feature request related to a problem? Please describe. For each start rdp, I find CJK fonts is gone and default locate is missed, It will cause:

  1. wine failed to display CJK words handle in apps, such as notepad++ with chinese.
  2. For CJK apps, windows title do not show correctly

Describe the solution you'd like Default install one of CJK font in docker image, such as fonts-noto-cjk, which I install once start Automatically add .profile in user home which adding "LANG=en_US.UTF-8" and "LC_ALL=en_US.UTF-8" for non ASCII string handling

Describe alternatives you've considered

kinetixjohnsonlee commented 2 years ago

I find strange issue that recent latest docker image (854e6c3810ba) from docker hub do not load .profile while login and x-terminal, so I change set locale with ubuntu default config (/etc/default/locale). (run it after started docker-wine and before RDP login)

docker exec -it wine bash -c "echo LANG=\"en_US.UTF-8\" >> /etc/default/locale"
docker exec -it wine bash -c "echo LC_ALL=\"en_US.UTF-8\" >> /etc/default/locale"
docker exec -it wine bash -c "echo LANGUAGE=\"en_US:en\" >> /etc/default/locale"