pgAdmin III commit: So, I changed the locale on my setup to "zh_CN.UTF-

Поиск
Список
Период
Сортировка
От Dave Page
Тема pgAdmin III commit: So, I changed the locale on my setup to "zh_CN.UTF-
Дата
Msg-id 201105191545.p4JFjFLV016724@gothos.postgresql.org
обсуждение исходный текст
Список pgadmin-hackers
So, I changed the locale on my setup to "zh_CN.UTF-8" and tried to restore into a database using a backup from earlier.
WhenI click on "Display objects" tab, I see an error being displayed, although the actual restore happens just fine.
Notethat no error occurs in English locales. 

Took me a while to figure this one out. The issue is with frmRestore::OnEndProcess() function. It naively avoids lines
containing";" or "P" as the first letter. So in the English locale, the last line about the "Process returned exit code
0"is handled. However in other locales, this will be translated and hence the last line will be inspected leading to a
spuriouserror. 

The fix is to avoid inspecting the last line.

Branch
------
REL-1_12_0_PATCHES

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin3.git;a=commitdiff;h=69525eab38f9073a74a46fc42aef32f1d875b6dc
Author: Nikhil S <nixmisc@gmail.com>

Modified Files
--------------
pgadmin/frm/frmRestore.cpp |    4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)


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

Предыдущее
От: Dave Page
Дата:
Сообщение: pgAdmin III commit: So, I changed the locale on my setup to "zh_CN.UTF-
Следующее
От: Dave Page
Дата:
Сообщение: Re: Re: pgadmin III - "Display objects" part of database restore errors out in non-English locales