Re: [libvirt] [PATCH] Use standard spacing for user/pass prompt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



According to Cole Robinson on 2/24/2010 12:23 PM:
> Kind of minor, but it annoys me that the default auth callback
> doesn't put a space between the prompt and the input, like a typical
> terminal, ssh, etc. This patch changes the current prompt:
> 
> Please enter your authentication name:myuser
> 
> to
> 
> Please enter your authentication name: myuser

Agreed.

>          case VIR_CRED_REALM:
> -            if (printf("%s:", cred[i].prompt) < 0)
> +            if (printf("%s: ", cred[i].prompt) < 0)

ACK.

But unrelated to your patch, how does this work with i18n?  Obviously,
translating "%s: " is useless.  Is cred[i].prompt previously translated
somewhere earlier in the caller?  I ask, because I'm not sure whether all
locales are okay with ': ' as the prompt tail, and wonder whether it
should be inlined into the translated prompt, which in turn would simplify
this part to puts(cred[i].prompt).

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]