ObjFW  Hex Artifact Content

Artifact 6dff0f59220b3915dfe2e699b4278eaa20ae05ba2780621ef5f9409a54dec868:

Manifest of check-in [6dff0f5922] - Always use "." for the decimal point

This is achieved by replacing the locale's decimal point with "." after
formatting and replacing "." with the locale's decimal point before
parsing.

To still use the decimal point from the locale for formatting, the new
flag "," is introduced to formats. This is useful for just printing a
string to the user that is not saved to a file or sent via a network.

While this is an ugly hack, there is no better way to do this other than
implementing the functionality of printf and strtod myself, as POSIX
does not specify versions of these that take a locale as an argument.
While this is a lot of work and error-prone, I will most likely end up
doing this eventually.

This commit also enables the locale in OFApplication to notice when
things break. As a nice side effect, ofhttp now uses the locale's
decimal point in its user interface. by js on 2017-01-07 02:34:39.


A hex dump of this file is not available. Please download the raw binary file and generate a hex dump yourself.