You are not logged in.

#1 2020-12-15 14:35:21

cathedral_junky
Member
Registered: 2020-12-04
Posts: 17

[SOLVED]Broken fonts / encoding in Wine, cant access files

Been using arch for about a week now apologies if this is too specific an issue for this subforum.
So for some reason in my 32bit prefix of wine in arch linux (to run musicbee), nearly all of the non-english character scripts (chinese, greek, korean, japanese, burmese, etc.) show up as broken encoding in the file name instead of the usual like missing font rectangles, because of this I can't open any of files with these characters or access anything within a folder containing these characters as they are invalid for microsofts file system. I am currently using wine-staging but have tried uninstalling it and using wine-stable (purged and reinstalled after reboot multiple times), messed with fonts that only seem to effect the program itself (so for example Ill get the text to display correctly in my musicbee library, but the songs cant play because it cant find the file as its misnamed when i open windows explorer to point to the file location). Ive tried running it with japanese locale just to see if that would work and it has no effect again, ive tried many different prefixes, importing fonts from windows or from my (working) debian musicbee set up both in the main .wine font folder, the prefix's /windows/font folder, the /usr/share/wine/fonts folder. Ive tried manually installing fonts via winetricks including corefonts, cjkfonts, and even all fonts multiple times on multiple prefixes, as well as running fontfix in winetricks. Ive followed the guide on the Arch wiki to link my system fonts to wine, and setting FREETYPE_PROPERTIES="truetype:interpreter-version=35" as suggested in the arch wiki to no effect. The files display fine and play fine within Arch, as well as in debian buster with the same setup, but in wine under arch they display all messed up. Nothing seems to fix this problem and its driving me up a wall, if anyone has any insight how to fix it I would be more than appreciative, thanks for reading. Here's some pictures to explain what I mean: https://imgur.com/a/UJHOk0G

Last edited by cathedral_junky (2020-12-15 19:45:36)

Offline

#2 2020-12-15 15:17:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,657

Re: [SOLVED]Broken fonts / encoding in Wine, cant access files

This is rather a locale than a font issue. Do you have the same problem with (windows) notepad?

Last edited by seth (2020-12-15 15:17:46)

Offline

#3 2020-12-15 15:33:07

cathedral_junky
Member
Registered: 2020-12-04
Posts: 17

Re: [SOLVED]Broken fonts / encoding in Wine, cant access files

seth wrote:

This is rather a locale than a font issue. Do you have the same problem with (windows) notepad?

Yes I cant open or paste any of these characters in notepad either.
Ive tried putting LANG=ja_JP.utf8 (as well as LANG=ja_JP.UTF8, and LANG="ja_JP.utf8") in the terminal to run the win program and it doesn't seem to have an effect, is there another way to do that?

The other concern I have is the program I am trying to run is a music library with lots of different languages, is there like a locale I can use  that contains all of them ? When I ran musicbee in debian I was able to access multiple languages in the same instance without switching locale. Thanks.

Offline

#4 2020-12-15 16:05:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,657

Re: [SOLVED]Broken fonts / encoding in Wine, cant access files

What locale do you use by default?

locale
locale -a
localectl

UTF-8 would cover all locales, there might be a problem if you use a more archaic cjk locale (or the wine client guesstimates utf-16)

Offline

#5 2020-12-15 16:18:15

cathedral_junky
Member
Registered: 2020-12-04
Posts: 17

Re: [SOLVED]Broken fonts / encoding in Wine, cant access files

seth wrote:

What locale do you use by default?

locale
locale -a
localectl

UTF-8 would cover all locales, there might be a problem if you use a more archaic cjk locale (or the wine client guesstimates utf-16)

locale returns:

LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=

locale -a returns:

C
POSIX
en_US.utf8

localectl returns:

   System Locale: LANG=C
       VC Keymap: n/a
      X11 Layout: n/a

In my /etc/locale.gen I only have "en_US.UTF-8 UTF-8" uncommented. (However this is the same configuration as my debian systems locale.gen and that seems to display properly)

Also I just tried running my program in the terminal with LANG=en_US.UTF-8 and it actually sorta works, as in my text is now the 'missing text' squares which is enough to get the music files to actually run. Im guessing at this point its just a font issue to get the rectangles to display the correct fonts and I can make an alias or something to always run with this locale? Or is there a more obvious solution based on this info? Thanks again.

Last edited by cathedral_junky (2020-12-15 16:20:02)

Offline

#6 2020-12-15 16:37:07

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,657

Re: [SOLVED]Broken fonts / encoding in Wine, cant access files

Fix your locale, https://wiki.archlinux.org/index.php/Locale
Many clients nowadays blindly rely on a utf-8 locale (it's not limited to wine and some *cough*gnome*cough* stuff will just segfault w/o utf-8)

It doesn't matter whether it's en_US.UTF-8 or a_JP.utf8, but you need to have the locale generated.

Offline

#7 2020-12-15 19:45:20

cathedral_junky
Member
Registered: 2020-12-04
Posts: 17

Re: [SOLVED]Broken fonts / encoding in Wine, cant access files

seth wrote:

Fix your locale, https://wiki.archlinux.org/index.php/Locale
Many clients nowadays blindly rely on a utf-8 locale (it's not limited to wine and some *cough*gnome*cough* stuff will just segfault w/o utf-8)

It doesn't matter whether it's en_US.UTF-8 or a_JP.utf8, but you need to have the locale generated.

Great that actually fixed it thanks so much ! Now after reinstalling fonts so they show in the program as well and just gotta find some way to display burmese and inuktitut and everything is set. Cheers.

Offline

Board footer

Powered by FluxBB