On 02/01/15 13:35, Giuliano Colla wrote: > Contrary to what written in docs, DefaultFormatSettings aren't adjusted > to the current locale in Linux at the startup of an application both on > fpc 2.6.4 and on fpc 2.7.1.
Where is this written? At least http://www.freepascal.org/docs-html/rtl/sysutils/defaultformatsettings.html doesn't say anything like that. > One is forced to explicitly add "clocale" in the uses section of the > application, in order to get the proper locale settings. > Did someone forget to add cloclale to the uses section of > /rtl/unix/sysutils.pp or there's another reason for this? The reason is that by design, FPC-compiled programs for Linux do not depend on libc and clocale introduces a dependency on libc. It's the same reason why you have to use the cthreads unit to get a functional thread manager under Linux. Jonas _______________________________________________ fpc-pascal maillist - [email protected] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
