[fpc-devel] ShortMonthNames give non local result
michael.vancanneyt at wisa.be
michael.vancanneyt at wisa.be
Sun Dec 5 19:11:29 CET 2010
Include the 'clocale' unit in your program's uses clause.
it will initialize the internationalization settings in the sysutils unit.
I have adapted the documentation so it mentions this.
Michael.
On Sun, 5 Dec 2010, Alexander wrote:
> Hi,
>
> I try use this variable, but result in English:
>
> uses SysUtils;
> begin
> WriteLn(SysUtils.ShortMonthNames[1]);
> end.
>
> Out:
>
> Jan
>
> set | grep 'LANG' :
>
> GDM_LANG=ru_RU.UTF-8
> LANG=ru_RU.UTF-8
>
> fpc -iW :
>
> 2.4.0-0
>
> Description of ShortMonthNames (http://www.freepascal.org/docs-html/rtl/sysutils/shortmonthnames.html):
>
> ShortMonthNames is an array with the abbreviated names of months. It is used by the date formatting routines. The initialization routines of the SysUtils unit initialize this string with a value conforming to the regional preferences of the user or system regional default.
>
>
> Good Luck,
> Alexander.
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
More information about the fpc-devel
mailing list