ObjFW  Artifact Description [114905a94e]

Artifact 114905a94e3a5d01d0316c4c2eb283fcc6e9f88d2349090824ad9994a93412f5:

  • File src/OFNumber.m
    • 2017-01-06 23:42:09 — part of check-in [ae340607fd] on branch trunk — Several minor style fixes (user: js, size: 23774) [annotate] [blame] [check-ins using]
    • 2017-01-07 02:34:39 — part of check-in [6dff0f5922] on branch trunk — 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. (user: js, size: 23774) [annotate] [blame] [check-ins using]