ssh-askpass not UTF-8/Unicode-aware

Bug #1810592 reported by Matthias Dieter Wallnöfer
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ssh-askpass (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

A call of ssh-askpass with a string containing non-ASCII characters like äöü doesn't get interpreted correctly in the message box's label.

A quick look to the source reveals that the software is still based on the outdated XDrawString() call, which is not Unicode-compatible (reference: https://stackoverflow.com/questions/40123008/iso-10646-xfont-encoding-issue/40267110#40267110).

lines 884 - 891 in x11-ssh-askpass.c:
> y = label.w.y + t->ascent;
> while (NULL != t) {
> if (t->text) {
> XDrawString(app->dpy, draw, app->textGC, x, y, t->text,
> t->textLength);
> }
> y += t->descent;
> t = t->next;

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ssh-askpass (Ubuntu):
status: New → Confirmed
Revision history for this message
schamane (schamane) wrote :

Confirming for up-to-date but otherwise unmodified Ubuntu 18.04.1.
ssh-askpass fails to render the chars, ssh-askpass-gnome works as expected.

Revision history for this message
Matthias Dieter Wallnöfer (mwallnoefer) wrote :

Is the tool still maintained? Does it make sense to keep the issue open?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.