1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

Fix US-ASCII encoding problem with the PostgreSQL backend. US-ASCII will be

substituted by SQL_ASCII which Postgres understands.

Submitted by:	Richard Schilling <rschi@rsmba.biz>
This commit is contained in:
Joe Marcus Clarke 2004-07-27 14:23:18 +00:00
parent 08576a11f4
commit ac25d171d0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=114880
4 changed files with 34 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= gnucash
PORTVERSION= 1.8.9
PORTREVISION= 1
CATEGORIES= finance gnome
MASTER_SITES= http://www.gnucash.org/pub/gnucash/sources/stable/ \
ftp://ftp.gnucash.org/pub/gnucash/sources/stable/ \

View File

@ -0,0 +1,16 @@
*** src/backend/postgres/PostgresBackend.orig Mon Jul 26 17:17:45 2004
--- src/backend/postgres/PostgresBackend.c Mon Jul 26 17:33:16 2004
***************
*** 2104,2109 ****
--- 2104,2114 ----
if (!strcmp (encoding, "ANSI_X3.4-1968"))
encoding = "SQL_ASCII";
+ if (!strcmp(encoding, "US-ASCII"))
+ encoding = "SQL_ASCII";
+
+ printf("\nDatabase encoding is: %s.\n", encoding);
+
/* create the database */
p = be->buff; *p =0;
p = stpcpy (p, "CREATE DATABASE ");

View File

@ -7,6 +7,7 @@
PORTNAME= gnucash
PORTVERSION= 1.8.9
PORTREVISION= 1
CATEGORIES= finance gnome
MASTER_SITES= http://www.gnucash.org/pub/gnucash/sources/stable/ \
ftp://ftp.gnucash.org/pub/gnucash/sources/stable/ \

View File

@ -0,0 +1,16 @@
*** src/backend/postgres/PostgresBackend.orig Mon Jul 26 17:17:45 2004
--- src/backend/postgres/PostgresBackend.c Mon Jul 26 17:33:16 2004
***************
*** 2104,2109 ****
--- 2104,2114 ----
if (!strcmp (encoding, "ANSI_X3.4-1968"))
encoding = "SQL_ASCII";
+ if (!strcmp(encoding, "US-ASCII"))
+ encoding = "SQL_ASCII";
+
+ printf("\nDatabase encoding is: %s.\n", encoding);
+
/* create the database */
p = be->buff; *p =0;
p = stpcpy (p, "CREATE DATABASE ");