Skip site navigation (1) Skip section navigation (2)

Re: problem with SVN Commit by hiroshi: r7562

From: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
To: "Sergey Burladyan" <eshkinkot(at)gmail(dot)com>
Cc: <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: problem with SVN Commit by hiroshi: r7562
Date: 2009-05-09 10:37:32
Message-ID: D90DEBC4620B4BE7ACFA8025E8ECBB1E@HIRO57887DE653 (view raw or flat)
Thread:
Lists: pgadmin-hackers
Hi Sergey-san.

Um, It contains the problem of a very difficult Postgres server.:-(
http://archives.postgresql.org//pgadmin-hackers/2009-01/msg00159.php
http://archives.postgresql.org//pgadmin-hackers/2009-01/msg00160.php

The problem is seen in Japan at the time of patch which you propose.
However, I think that you should take some into consideration by the reason
for having the realistic problem.....

Please let me inquire after discussion with Dave and Guillaume.

BTW, We have not solved the encoding problem of a server log yet.
The plan was considered this way and that in a certain form.
http://winpg.jp/~saito/pg_work/ELOG_ENCODING_PALN/
Although this is ad hoc, it has a prototype.

Regards,
Hiroshi Saito

----- Original Message ----- 
From: "Sergey Burladyan" <eshkinkot(at)gmail(dot)com>


>
> problem patch: http://archives.postgresql.org/pgadmin-hackers/2009-01/msg00166.php
> with this patch cyrillic logs displayed incorrectly.
>
>


--------------------------------------------------------------------------------


>
> revert some lines from it fix problem:
> -        wxString str;
> -        if (wxString(wxString(raw,wxConvLibc),wxConvUTF8).Len() > 0)
> -            str = line + wxString(wxString(raw,wxConvLibc),wxConvUTF8);
> -        else
> -            str = line + wxTextBuffer::Translate(wxString(raw, set->GetConversion()), 
> wxTextFileType_Unix);
> +        wxString str = line + wxTextBuffer::Translate(wxString(raw, set->GetConversion()), 
> wxTextFileType_Unix);
>
>


--------------------------------------------------------------------------------


>
> i can't understand what is going on here:
> wxString(wxString(raw,wxConvLibc),wxConvUTF8)
>
> but without it - log loaded with correct encoding.
>
> test locale settings:
> cp1251=# select name, setting from pg_settings where name like 'lc_%' or name like '%encod%';
>      name       |   setting
> -----------------+--------------
> client_encoding | WIN1251
> lc_collate      | ru_RU.CP1251
> lc_ctype        | ru_RU.CP1251
> lc_messages     | ru_RU.CP1251
> lc_monetary     | ru_RU.CP1251
> lc_numeric      | ru_RU.CP1251
> lc_time         | ru_RU.CP1251
> server_encoding | WIN1251
>
> cp1251(at)seb:~$ locale
> LANG=ru_RU.CP1251
> LC_CTYPE="ru_RU.CP1251"
> LC_NUMERIC="ru_RU.CP1251"
> LC_TIME="ru_RU.CP1251"
> LC_COLLATE="ru_RU.CP1251"
> LC_MONETARY="ru_RU.CP1251"
> LC_MESSAGES="ru_RU.CP1251"
> LC_PAPER="ru_RU.CP1251"
> LC_NAME="ru_RU.CP1251"
> LC_ADDRESS="ru_RU.CP1251"
> LC_TELEPHONE="ru_RU.CP1251"
> LC_MEASUREMENT="ru_RU.CP1251"
> LC_IDENTIFICATION="ru_RU.CP1251"
> LC_ALL=
>
>
> -- 
> Sergey Burladyan
>


--------------------------------------------------------------------------------


>
> -- 
> Sent via pgadmin-hackers mailing list (pgadmin-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
> 



In response to

pgadmin-hackers by date

Next:From: svnDate: 2009-05-10 11:19:17
Subject: SVN Commit by dpage: r7858 - trunk/pgadmin3/docs/en_US
Previous:From: Massa, Harald ArminDate: 2009-05-09 08:34:05
Subject: Re: improvement for version after the current one...

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group