Full Unicode/Ansi-Support in /testing branch

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

miab3,

i think i got it. The namespaces had been wrong. Also did i change the sequence of precedence to check the functionallity (I don't use Debian..). Now the libiconv stuff is the next. FB3 did another member start, Michal.

Patch done R1951
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Post by miab3 »

EgonHugeist,

Now (R1951)

Code: Select all

/usr/lib/codetyphon/lazarus/components/pl_ZeosDBO/source/core/ZCompatibility.pas(498,21) Error: Illegal expression
/usr/lib/codetyphon/lazarus/components/pl_ZeosDBO/source/core/ZCompatibility.pas(551,39) Error: Identifier not found "StringToAnsiEx"
/usr/lib/codetyphon/lazarus/components/pl_ZeosDBO/source/core/ZCompatibility.pas(824) Fatal: There were 2 errors compiling module, stopping
Michal
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

miab3,

hmpf. Slightly i need a *nix system for that... R1953
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Post by miab3 »

EgonHugeist,

R1953
It compiles and runs on Linux 64 after removing the semicolon at the end of the line 554 file ZCompatibility.pas:
Result := AnsiToUTF8(AStr); //actually i can't convert anything here

Michal
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Post by miab3 »

EgonHugeist,

Zeos7.0.1-beta branches_ testing_R1954:
http://svn.code.sf.net/p/zeoslib/code-0 ... s/testing/
compiles and runs on (I have tested):

- D2006,
- D2007 -> C++,
- DXE2 32/64 -> C++(32),
- Lazarus Win 1.1/fpc 2.7.1 32/64,
- Lazarus Lin 1.1/fpc 2.7.1 64 on Debian 64-bit (LMDE 201204).

(Firebird 2.5.3, MySQL 5.5.18, MariaDB 5.5.28, Oracle 11g EE, PostgreSQL 9.2.1, MSSQL 2008 R2 Express)

Michal
patyit
Junior Boarder
Junior Boarder
Posts: 37
Joined: 10.02.2012, 18:39

Can't compile on Lazarus 1.1, FPC 2.6.1

Post by patyit »

.../zeos7_test/src/core/ZCompatibility.pas(421,39) Error: Identifier not found "AnsiToStringEx"

XUbuntu 32, lazarus 1.1 svn, FPC 2.6.1 svn, Zeos 7 test svn from now ... :(
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

patyit,

hope it is solved. Patch done R1961. Confirmed or again issues?
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Post by miab3 »

EgonHugeist,

Zeos7.0.1-beta branches_ testing_R1961:
http://svn.code.sf.net/p/zeoslib/code-0 ... s/testing/
compiles and runs on (I have tested):

- D2006,
- D2007 -> C++,
- DXE2 32/64 -> C++(32),
- Lazarus Win 1.1/fpc 2.7.1 32/64,
- Lazarus Lin 1.1/fpc 2.7.1 64 on Debian 64-bit (LMDE 201204).

(Firebird 2.5.3, MySQL 5.5.18, MariaDB 5.5.28, Oracle 11g EE, PostgreSQL 9.2.1, MSSQL 2008 R2 Express)

But there is something wrong in Lazarus.
For example in Firebird in field VARCHAR(10) holds up to 5 national characters.

Michal
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

miab3,
But there is something wrong in Lazarus.
For example in Firebird in field VARCHAR(10) holds up to 5 national characters.
That's something i was waiting for. I'm not surpriced about this. Question which characterset did you use on creating your DataBase? I don't think you used Charset 'NONE'.

Furthermore i've the impressing that we've got trouble like i suggest before: http://zeos.firmos.at/viewtopic.php?t=3611

TField.Size is NOT Count of Chars nope it's count of Bytes. Which means each national two byte chare doesn't fit into to FieldBuffer. I'm wondering why Delphi seems to have a different behavior here.

Next question does it really only happen for FB? I dont't think so. If we've a common behavior than the fix is quickly done with a little {$IFDEF FPC} around... If not than this might have another reasonn

So i'm waiting for reply...
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
patyit
Junior Boarder
Junior Boarder
Posts: 37
Joined: 10.02.2012, 18:39

Post by patyit »

.../zeos7_test/src/core/ZCompatibility.pas(495,42) Error: identifier idents no member "DbcConvertFunc"

Unfortunately I can't compile on Lazarus ! :cry:
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Post by miab3 »

EgonHugeist,

The database is NONE (the varchar fields have set charsets). I think that the situation is similar to the FreeTDS and national characters in Lazarus.

Michal
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

patyit,

i hope i got it ))): R1966.

miab3,

Nope i don't think so. The issue is further more you choose 'UTF8' or zeos does it automatically as charset. Now zeos assumes 3(FB-standart) byte per char. Zeos does arrange the DisplayWidth by himselves. Which means varchar(10)+Charset'None' means 10bytes but zeos assumes (10 div 3 bytes + 10Chars mod 3) + 1Null byte = 5.

Hmm seems like i've to add a determination for Charset 'None' generally because i know about that issue: http://www.lazarus.freepascal.org/index ... 542.0.html

[s]The solution would be to use TZConnection.ClientCodePage = 'NONE'. Anyway that's not a nice way. I'll patch it tomorrow.[/s]

Edit: R1967. Does that solve your FB issue?

UHHHH i've started last year in february with Rev 967!! Which doesn't mean all patches are done by my selves. (:
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
miab3
Zeos Test Team
Zeos Test Team
Posts: 1310
Joined: 11.05.2012, 12:32
Location: Poland

Post by miab3 »

EgonHugeist,

I get AV when I switch Connected to true for Firebird.

Michal
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

miab3,

Lazarus does not automatically post if i recompile.... I'm sorry.

Rev1970
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
patyit
Junior Boarder
Junior Boarder
Posts: 37
Joined: 10.02.2012, 18:39

Post by patyit »

More commpiler error :

.../zeos7_test/src/core/ZCompatibility.pas(667,34) Error: Identifier not found "WS"
Locked