96a9b9a util: fix locale problem with virStrToDouble().

1 file Authored by Julio Faracco 6 years ago, Committed by mkletzan 6 years ago,
    util: fix locale problem with virStrToDouble().
    
    This commit fixes a locale problem with locales that use comma as a mantissa
    separator. Example: 12.34 en_US = 12,34 pt_BR. Since strtod() is a non-safe
    function, virStrToDouble() will have problems to parse double numbers from
    kernel settings and other double numbers from static files (XMLs, JSONs, etc).
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1457634
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1457481
    
    Signed-off-by: Julio Faracco <jcfaracco@gmail.com>
    
        
file modified
+17 -1