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

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

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


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


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 redhat com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

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