Re: [PATCHES] Solve a problem of LC_TIME of windows.

Поиск
Список
Период
Сортировка
От ITAGAKI Takahiro
Тема Re: [PATCHES] Solve a problem of LC_TIME of windows.
Дата
Msg-id 20081104094301.7EE8.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответ на Re: [PATCHES] Solve a problem of LC_TIME of windows.  ("Hiroshi Saito" <z-saito@guitar.ocn.ne.jp>)
Ответы Re: [PATCHES] Solve a problem of LC_TIME of windows.  ("Jaime Casanova" <jcasanov@systemguards.com.ec>)
Список pgsql-hackers
Hello, Saito-san:

"Hiroshi Saito" <z-saito@guitar.ocn.ne.jp> wrote:
> next patch is this.

I'm reviewing your patch and cleanup some parts:
  - Avoid casting to LPWSTR.
  - Use pre-defined MAX_L10N_DATA instead of STRLEN_MAX.
I'll send a new version.


BTW, we convert strings multiple times in the function.
  Windows mbcs -> UTF16 -> UTF8 -> server_encoding

If we have 100% compatible encoding with Windows,
we could skip UTF16 and UTF8 conversions. i.e,

  buflen = strftime(buffer);
  result = pg_do_encoding_conversion(buffer, buflen,
    GetPlatformEncoding(), GetDatabaseEncoding());

Is it possible to implement GetPlatformEncoding() ?
I think it is also needed to treat non-ascii file path
in COPY, LOAD, archive_command and so on.

Regards,
---
ITAGAKI Takahiro
NTT Open Source Software Center


Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [WIP] In-place upgrade
Следующее
От: "Robert Haas"
Дата:
Сообщение: Re: [WIP] In-place upgrade