Re: Solution of the file name problem of copy on windows.

Поиск
Список
Период
Сортировка
От Itagaki Takahiro
Тема Re: Solution of the file name problem of copy on windows.
Дата
Msg-id 20090413184335.39BE.52131E4D@oss.ntt.co.jp
обсуждение исходный текст
Ответ на Re: Solution of the file name problem of copy on windows.  (Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp>)
Ответы Re: Solution of the file name problem of copy on windows.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp> wrote:

> "Hiroshi Saito" <z-saito@guitar.ocn.ne.jp> wrote:
>
> > Um,  I had a focus in help the problem which is not avoided.
> > I am not sensitive to a problem being avoided depending on usage.
> > However, I will wish to work spontaneously, when it is help much.
>
> I'll research whether encoding of filesystem path is affected by
> locale settings or not in some platforms. Also, we need to research
> where we should get the system encoding when the locale is set to "C",
> which is popular in Japanese users.

Here is a patch to implement GetPlatformEncoding() and convert absolute
file paths from database encoding to platform encoding. Since encoding
of paths are converted at AllocateFile() and BasicOpenFile(), not only
COPY TO/FROM but also almost of file operations are covered by the patch.
Callers of file access methods don't have to modify their codes.

Please test the patch in a variety of platforms. I tested it on Windows
and Linux, and then I found {PG_UTF8, "ANSI_X3.4-1968"} is required for
encoding_match_list in src/port/chklocale.c on Linux (FC6).

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


Вложения

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

Предыдущее
От: Abhijit Menon-Sen
Дата:
Сообщение: Re: [PATCH] Add a test for pg_get_functiondef()
Следующее
От: Guillaume Smet
Дата:
Сообщение: Re: New trigger option of pg_standby