logo       

Re: psycopg removing the first letter of exceptions and errors: msg#00065

python.db.psycopg.devel

Subject: Re: psycopg removing the first letter of exceptions and errors

Federico Di Gregorio <fog-NGVKUo/i/6DYtjvyW6yDsg@xxxxxxxxxxxxxxxx> writes:

> Are you running with encodings different from UTF8 and/or lc_messages
> different from "C"?

Environment for the database user (and the one used to create all databases):

LANG = pt_BR.UTF-8
LC_* = unset (using the default, I'm not sure if it is C or the same as
LANG).


Inside the database:

test=# \set
VERSION = 'PostgreSQL 8.1.1 on i686-pc-linux-gnu, compiled by GCC gcc (GCC)
4.0.2 20050901 (prerelease) (SUSE Linux)'
AUTOCOMMIT = 'on'
VERBOSITY = 'default'
PROMPT1 = '%/%R%# '
PROMPT2 = '%/%R%# '
PROMPT3 = '>> '
DBNAME = 'test'
USER = 'godoy'
HOST = 'internet'
PORT = '5432'
ENCODING = 'UTF8'
HISTSIZE = '500'
test=#


My python uses UTF-8 by default. And my client system is also in UTF-8 (Linux
as well). I first noticed that in TurboGears... It might be something from
there, then.

Sorry to disturb you. I'll dig more.


--
Jorge Godoy <godoy-EkmVulN54Sk@xxxxxxxxxxxxxxxx>

"Quidquid latine dictum sit, altum sonatur."
- Qualquer coisa dita em latim soa profundo.
- Anything said in Latin sounds smart.

Attachment: pgpPBgT0k0rDX.pgp
Description: PGP signature

_______________________________________________
Psycopg mailing list
Psycopg-IAPFreCvJWPBWskQ1e/+sw@xxxxxxxxxxxxxxxx
http://lists.initd.org/mailman/listinfo/psycopg
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise