Update of /cvsroot/refdb/refdb/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18420
Modified Files:
Tag: Release_0_9_5_stable
backend-dbib.c
Log Message:
fixed corrupt output if BIBLIOTITLE is empty
Index: backend-dbib.c
===================================================================
RCS file: /cvsroot/refdb/refdb/src/backend-dbib.c,v
retrieving revision 1.28.2.1
retrieving revision 1.28.2.2
diff -u -U2 -r1.28.2.1 -r1.28.2.2
--- backend-dbib.c 13 Jul 2004 20:29:08 -0000 1.28.2.1
+++ backend-dbib.c 11 Aug 2004 20:59:15 -0000 1.28.2.2
@@ -97,4 +97,12 @@
}
+ /* get the database encoding */
+ if (!*(ptr_biblio_info->encoding)) {
+ db_encoding = dbi_conn_get_encoding(conn);
+ }
+ else {
+ db_encoding = (const char*)ptr_biblio_info->encoding;
+ }
+
if (!strcmp(my_dbi_conn_get_cap(conn, "multiple_db"), "t")) {
sprintf(sql_command, "SELECT BIBLIOTITLE from %s.CITSTYLE where JOURNAL=%s", MAIN_DB, myjournal);
@@ -128,15 +136,4 @@
}
- /* todo: set encoding appropriately */
-
- /* get the database encoding */
- if (!*(ptr_biblio_info->encoding)) {
- db_encoding = dbi_conn_get_encoding(conn);
- }
- else {
- db_encoding = (const char*)ptr_biblio_info->encoding;
- }
-
-
/* the bibliography must not have a doctype line if it is included
as an external entity */
|