fvwmorg / fvwm3

FVWM version 3 -- the successor to fvwm2
Other
511 stars 77 forks source link

Special characters (umlauts) are sometimes not displayed correctly in the window title #482

Closed mrtycho closed 2 years ago

mrtycho commented 3 years ago

Expected Behaviour

Launch a program that has an umlaut in its name, e.g. pavucontrol = Lautstärkeregler (German) "Lautstärkeregler" is shown in the title of the new window.

Actual Behaviour

Instead of the umlaut "ä" there is a different character shown: shot1

Name and Icon Name are using a wrong character.

Steps to Reproduce

For this bug report I used the default configuration of fvwm3 and I'm using LANG=de_DE.UTF-8

Include your configuration with this issue. =default configuration of fvwm3

Does Fvwm3 crash?

No

Extra Information

Style * Font "xft:Sans:size=8:antialias=True" Style * IconFont "xft:Sans:Bold:size=8:antialias=True" Style * TitleFormat %i\n # Style * !Icon

This results in the following shot2

After this the icon name now looks as expected and so I can use %i as TitleFormat.

ThomasAdam commented 3 years ago

Hi @mrtycho

What locale settings are you using? For example:

% locale
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=en_GB.UTF-8
mrtycho commented 3 years ago

Hi @ThomasAdam

my locale settings are

LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=
ThomasAdam commented 3 years ago

Hi @mrtycho

If you:

export LC_ALL=de_DE.UTF-8 in your .xsession (or however you start X11), PRIOR to starting fvwm3, does that help at all?

mrtycho commented 3 years ago

Hi @ThomasAdam

ok, I added the export to the .xprofile file and after I restarted X11 LC_ALL was set to de_DE.UTF8. Unfortunatly this didn't help. (To be on the safe side, I started fvwm3 again with --replace.)

lgsobalvarro commented 3 years ago

I think @MasterP-theGu mentioned this issue some time ago in IRC, too.

MasterP-theGu commented 3 years ago

Yes, I did. Funnily enough, it was the Lautstärkeregler, too, that made me realise the problem. Here's an extract from the IRC log to have things together in one place, also for the screenshots.

Those issues had come up on a RaspberryPi 4 with ArchlinuxARM and - as far as fonts and locales are concerned - standard config. The same issue of the missing "ä" and Umlauts can be seen on my standard Intel based PC running OpenSuSE 15.2 and using the self-same config as on the Pi.

It might be a question of where the text in the window title comes from. As you can see, if it's the name of the programme, the Umlauts don't work, if it's the name of a page opened in Firefox, Umlauts do work. Are there different algorithms involved?

Hi all, I wonder if this is an fvwm issue or if I've ruined some code-config somewhere else? One window is qt, the other is gtk, in both cases the letters "ärk" are missing. https://i.imgur.com/U51aGWk.png To confuse the idea of font (sorry!) https://i.imgur.com/2gE4pkD.png The capital "Ö" works fine, the small "ö" doesn't. Would that still make sense with font/charmap issues?

LC_ALL is empty as a standard. Now that I've read this, I'll try my best setting it in my .Xresources. Will come back here with results.

EDIT 5 mins later: Although .Xresources is obviously not the place to put the export, I managed to set AC_ALL according to Thomas' suggestion, but to same result as mrtycho - none. :(

ThomasAdam commented 2 years ago

Might be the same as #684