#824747 gv: incorrect input of non-ASCII characters in the file selector

Package:
gv
Source:
gv
Description:
PostScript and PDF viewer for X
Submitter:
Vincent Lefevre
Date:
2023-08-15 19:48:03 UTC
Severity:
normal
#824747#5
Date:
2016-05-19 11:27:38 UTC
From:
To:
In the file selector, when a non-ASCII character is typed, its byte
sequence is interpreted as ISO-8859-1, which is incorrect in UTF-8
locales. To reproduce, using UTF-8 locales:

1. Start gv.
2. File -> Open ...
3. Type a non-ASCII character, e.g. é

"é" appears instead of "é". In ISO-8859-1, this corresponds to the
bytes c3 a9, which is the encoding of é in UTF-8.

#824747#10
Date:
2023-08-15 14:33:53 UTC
From:
To:
Retitling since you /can/ write the characters in the input,
they just get mangled and displayed byte-wise (bullseye).

The same happens in the status bar
(ą displayed as A-with-circle, vulgar fraction 1/4).

The window title is instead flattened to equivaent latin characters
(ż -> z) or ?s if not available (рахунок -> ???????),
which reeks of iconv, maybe with //translate.

Both are obviously wrong.
Screenshots attached (unmangled these are "żupan.pdf" and "рахунок.pdf").

Best,
наб

#824747#19
Date:
2023-08-15 14:39:44 UTC
From:
To:

#824747#24
Date:
2023-08-15 19:45:41 UTC
From:
To:
Yes, for display, but this also affects editing. For instance,
"é" emits 2 bytes, which are regarded as 2 latin1 characters,
thus one needs to type Backspace twice to remove them.