[libvirt] [PATCH 1/2] util: implement virStrToDoubleSafe().

Martin Kletzander mkletzan at redhat.com
Fri Jun 16 07:03:14 UTC 2017

On Thu, Jun 15, 2017 at 05:51:42PM -0300, Julio Faracco wrote:
>Thanks to share the commit SHA, Martin.
>My only doubt is: I speak Brazilian portuguese (so pt_BR-Latin
>America and we use comma as separator). Should libvirt consider
>it as a separator? Or only dot? Because this approach fails to parse
>12,34 (12.34 US) for example.

Well, it depends.  In the XML it is defined hot it should look, that's
not locale-dependent.  Migration wouldn't work between machines with
different locales.  Where we should respect locale is anything that is
not being parsed (and will not be parsed by any other program) and is
meant only for reading by the user.  I haven't actually checked the
other patch you sent, so I don't know what you were using it in the end.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170616/abf8535c/attachment-0001.sig>

More information about the libvir-list mailing list