View Single Post

   
  #4 (permalink)  
Old 04-12-2008, 05:40 AM
Tom Lane
 
Posts: n/a
Default Re: Day and month name localization uses wrong locale category

Peter Eisentraut <peter_e@gmx.net> writes:
> What's concerning me about the way this is written is that it calls
> setlocale() for each formatting instance, which will be very slow.


Perhaps, the first time the info is needed, do setlocale(), ask strftime
for the 12+7 strings we need and save them away, then revert to C locale
and proceed from there.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Reply With Quote