Re: small bug in to_char and TM prefix, in RC
От | Pavel Stehule |
---|---|
Тема | Re: small bug in to_char and TM prefix, in RC |
Дата | |
Msg-id | BAY114-F4BDCA1AE7999C89340888F9E40@phx.gbl обсуждение исходный текст |
Ответ на | small bug in to_char and TM prefix, in RC ("Pavel Stehule" <pavel.stehule@hotmail.com>) |
Ответы |
Re: small bug in to_char and TM prefix, in RC
|
Список | pgsql-hackers |
> >It's pretty much guaranteed not to work on multibyte characters, >regardless of platform :-(. This did not matter for non-localized >month/day names, but it does matter now. > >In the context of the existing code, the simplest solution would be >to provide separate translations of "SUNDAY", "Sunday", "sunday" etc >but this will not work for the planned strftime() change. > and what use modified pg_tolower only for TM fields? Like: if (S_TM(suf)) { strcpy(inout, localize_month(tm->tm_mon - 1)); str_towupper(inout); } else { strcpy(inout, months[tm->tm_mon - 1]); str_toupper(inout); } regards Pavel Stehule _________________________________________________________________ Chcete sdilet sve obrazky a hudbu s prateli? http://messenger.msn.cz/
В списке pgsql-hackers по дате отправления: