dbf2pg international characters handling incomplete
Your name: Márcio Dick Smiderle
Your email address: dick@inf.ufsc.br
System Configuration
---------------------
Architecture : k62 300
Operating System : Linux 2.4.21 elf
PostgreSQL version : PostgreSQL-7.2.1 and CVS(just dbf2pg)
Compiler used : gcc-3.3 and gcc-2.95
Please enter a FULL description of your problem:
------------------------------------------------
dbf2pg interprets international chars (áéíóú etc) as end of record
cell text.
Please describe a way to repeat the problem. Please try to provide a
concise reproducible example, if at all possible:
----------------------------------------------------------------------
Run dbf2pg with some records with non-ascii chars.
If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------
In the main() of dbf2pg add the line
setlocale(LC_ALL, ""); /* For isprint() to work correctly with other
charsets than 7 bit ascii */
OK, patch attached and applied for 7.4. Thanks.
---------------------------------------------------------------------------
M���rcio Dick Smiderle wrote:
Your name: M?rcio Dick Smiderle
Your email address: dick@inf.ufsc.brSystem Configuration
---------------------
Architecture : k62 300Operating System : Linux 2.4.21 elf
PostgreSQL version : PostgreSQL-7.2.1 and CVS(just dbf2pg)
Compiler used : gcc-3.3 and gcc-2.95
Please enter a FULL description of your problem:
------------------------------------------------dbf2pg interprets international chars (????? etc) as end of record
cell text.Please describe a way to repeat the problem. Please try to provide a
concise reproducible example, if at all possible:
----------------------------------------------------------------------Run dbf2pg with some records with non-ascii chars.
If you know how this problem might be fixed, list the solution below:
---------------------------------------------------------------------In the main() of dbf2pg add the line
setlocale(LC_ALL, ""); /* For isprint() to work correctly with other
charsets than 7 bit ascii */---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073