https://bugs.kde.org/show_bug.cgi?id=495328

            Bug ID: 495328
           Summary: Can't write special characters in ksshaskpass
                    passphrase prompts
    Classification: KDE Neon
           Product: neon
           Version: unspecified
          Platform: Neon
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: neon-b...@kde.org
          Reporter: leope...@disroot.org
                CC: carlosdema...@gmail.com, j...@jriddell.org,
                    neon-b...@kde.org
  Target Milestone: ---

SUMMARY

Can't write special characters in ksshaskpass passphrase prompts.

STEPS TO REPRODUCE
1. Setup a SSH connection with a pubkey secured by passphrase containing an
accent or diaresis (á, é, í, ö, ú, À, è...).
2. Prepare a script like this:

#!/bin/bash
ssh -fN -L 5901:localhost:5901 user@host &&
krdc vnc://user@localhost:5901 &&
lsof -ti:5901 | xargs kill -9

3. Launch the script from a .desktop file with "Terminal=false" parameter.
4. Write the passphrase in the prompt (ksshaskpass) and try (it won't work).

OBSERVED RESULT
The prompt appears again asking for passphrase.
On the second attempt, write the passphrase but, before confirm, show (unhide)
the passphrase... You'll notice that characters written with an accent or a
diaresis appears without them (i.e. you wrote "á", but the prompt reads "a").

EXPECTED RESULT
I can write passphrases with accents and diaresis in ksshaskpass passphrase
prompts, so my script continues.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.2
KDE Plasma Version: 6.2.2
KDE Frameworks Version: 6.7.0 
Qt Version: 6.7.2

ADDITIONAL INFORMATION

If you show the passphrase before writing it, accents and diaresis are
correctly written, then you can confirm and the scripts continues.

Any character with accent or diaresis written with the passphrase hided, will
be "rendered" without accent or diaresis. Any character with accent or diaresis
written when showing the passphrase, will be "rendered" ok.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to