[fpc-devel] ShortMonthNames give non local result

Alexander aralni at mail.ru
Sun Dec 5 15:59:18 CET 2010


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.



More information about the fpc-devel mailing list