From 011da193bfb77a036d42313e0ab6afe07cb5d1c1 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Wed, 9 Jun 2010 22:27:14 +0000 Subject: [PATCH] 2010-06-10 00:27 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/rdd/dbf1.c + allow to open DBF files with 0x07 and 0x87 signature created by CA-VO DBFNTX when ANSI encoding is enabled. Thanks to Vitomir Cvitanovic for CA-VO tests. Warning! After any modifications in such files Harbour DBF* RDDs will correct above signatures to standard DBASE ones (0x03 and 0x83). --- harbour/ChangeLog | 8 ++++++++ harbour/src/rdd/dbf1.c | 2 ++ 2 files changed, 10 insertions(+) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index e2eaa5c616..40e0e4cfa8 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,14 @@ The license applies to all entries newer than 2009-04-28. */ + +2010-06-10 00:27 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/src/rdd/dbf1.c + + allow to open DBF files with 0x07 and 0x87 signature created by + CA-VO DBFNTX when ANSI encoding is enabled. + Thanks to Vitomir Cvitanovic for CA-VO tests. + Warning! After any modifications in such files Harbour DBF* RDDs + will correct above signatures to standard DBASE ones (0x03 and 0x83). 2010-06-10 00:03 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * examples/uhttpd2/umain.prg * examples/uhttpd2/uhttpd2.hbp diff --git a/harbour/src/rdd/dbf1.c b/harbour/src/rdd/dbf1.c index bde276ab31..e4492c2d22 100644 --- a/harbour/src/rdd/dbf1.c +++ b/harbour/src/rdd/dbf1.c @@ -5058,9 +5058,11 @@ static HB_ERRCODE hb_dbfReadDBHeader( DBFAREAP pArea ) break; case 0x03: + case 0x07: /* CA-VO DBFNTX and ANSI CP */ break; case 0x83: + case 0x87: /* CA-VO DBFNTX+MEMO and ANSI CP */ pArea->fHasMemo = HB_TRUE; pArea->bMemoType = DB_MEMO_DBT; break;