[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Current date in italian language?
You wrote (in your message from Saturday 15)
> As I got no reply to my previous e-mail, I'm trying with a slightly
> different question.
> Is there any OS-supported way to print the current date in Italian
> I tried with the following code but with no result:
> clock = time(0);
> tm = localtime( &clock );
> setlocale( LC_TIME, "it" );
> strftime( buff, sizeof(buff), "%c", tm );
> Federico Giannici wrote:
> > Is setlocale() supposed to work?
> > I used setlocale(LC_TIME, "it") but then the strftime() strings remained
> > in english...
> > If setlocale() is supposed to work, what could I miss?
> > Thanks.
There is no support for locale other than C in OpenBSD for now.
(except for some message catalogs).
- From: Eugene Bobin <email@example.com>