Full Unicode/Ansi-Support in /testing branch
Moderators: gto, EgonHugeist, olehs
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
patyit,
can you give me a full list please? Don't have a linux actually (a remaining part of mine).
Patch done 1972
can you give me a full list please? Don't have a linux actually (a remaining part of mine).
Patch done 1972
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/
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/
I have again compiler error. I can fix it now, I think it is miss typo ...
/home/patyi/lazarus-svn/zeos7_test/src/core/ZEncoding.pas(669,33) Hint: Mixing signed expressions and longwords gives a 64bit result
/home/patyi/lazarus-svn/zeos7_test/src/core/ZCompatibility.pas(687,31) Error: Identifier not found "Astring"
/home/patyi/lazarus-svn/zeos7_test/src/core/ZCompatibility.pas(844) Fatal: There were 1 errors compiling module, stopping
function TZCodePagedObject.ZPlainUnicodeString(const AStr: String): WideString;
begin
{$IFDEF DELPHI12_UP}
Result := AStr;
{$ELSE}
{$IFDEF WITH_LCONVENCODING}
Result := UTF8ToString(AStr);
{$ELSE}
{$IF defined(DELPHI) or defined(MSWINDOWS)}
Result := AnsiToWide(AStr, FConSettings.CTRL_CP);
{$ELSE}
case Consettings.CPType of
cGET_ACP:
if FConSettings.CTRL_CP = zCP_UTF8 then
UTF8Decode(AStr) // orginal code UTF8Decode(Astring)
else
Result := WideString(AStr); //default Ansi to Wide cast for all comilers
else
Result := UTF8Decode(AStr);
end;
{$IFEND}
{$ENDIF}
{$ENDIF}
end;
After this fix finally Zeos is compiled ! I hope it is no more errors in it.
(XUbuntu 32, Lazarus latest svn, fpc 2.6.1 latest svn, Zeos 7 r1972 svn)
Thank for help, Patyi.
/home/patyi/lazarus-svn/zeos7_test/src/core/ZEncoding.pas(669,33) Hint: Mixing signed expressions and longwords gives a 64bit result
/home/patyi/lazarus-svn/zeos7_test/src/core/ZCompatibility.pas(687,31) Error: Identifier not found "Astring"
/home/patyi/lazarus-svn/zeos7_test/src/core/ZCompatibility.pas(844) Fatal: There were 1 errors compiling module, stopping
function TZCodePagedObject.ZPlainUnicodeString(const AStr: String): WideString;
begin
{$IFDEF DELPHI12_UP}
Result := AStr;
{$ELSE}
{$IFDEF WITH_LCONVENCODING}
Result := UTF8ToString(AStr);
{$ELSE}
{$IF defined(DELPHI) or defined(MSWINDOWS)}
Result := AnsiToWide(AStr, FConSettings.CTRL_CP);
{$ELSE}
case Consettings.CPType of
cGET_ACP:
if FConSettings.CTRL_CP = zCP_UTF8 then
UTF8Decode(AStr) // orginal code UTF8Decode(Astring)
else
Result := WideString(AStr); //default Ansi to Wide cast for all comilers
else
Result := UTF8Decode(AStr);
end;
{$IFEND}
{$ENDIF}
{$ENDIF}
end;
After this fix finally Zeos is compiled ! I hope it is no more errors in it.
(XUbuntu 32, Lazarus latest svn, fpc 2.6.1 latest svn, Zeos 7 r1972 svn)
Thank for help, Patyi.
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
patyit,
thank you. Patch applied R 1973. I'm really sorry for that..
Nope you don't have to worry. Acutally the most parts are out of use and a preparation for the remaining LibIconvert implementation. I've allready started downloading a Linux for a VirtualBox.
thank you. Patch applied R 1973. I'm really sorry for that..
Nope you don't have to worry. Acutally the most parts are out of use and a preparation for the remaining LibIconvert implementation. I've allready started downloading a Linux for a VirtualBox.
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/
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/
EgonHugeist,
R1974, Delphi 2006, compile-time error:
( ConSettings.CTRL_CP = cGET_ACP) <--
Michal
R1974, Delphi 2006, compile-time error:
Code: Select all
[Pascal Error] ZEncoding.pas(712): E2008 Incompatible types
[Pascal Error] ZEncoding.pas(712): E2015 Operator not applicable to this operand type
[Pascal Fatal Error] ZCompatibility.pas(265): F2063 Could not compile used unit '..\..\src\core\ZEncoding.pas'
Code: Select all
if ( ConSettings.CTRL_CP = cGET_ACP) or (ConSettings.CTRL_CP = ConSettings.ClientCodePage.CP) then //second test avoids encode the string twice
Michal
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
miab3,
Not my weekend, really not!
It was not my intention to bother you guys.
R1975.
Also did i commit an appproach accordingly Lazarus/AnsiDelphi for ControlsCodePage=cCP_UTF8. I left the FieldDisplayWidth untouched and increasesd Field.Size(DataSize in bytes) *4.
Possible is also that the DisplayWidth is wrong, Michal. Can you test it again?
Not my weekend, really not!
It was not my intention to bother you guys.
R1975.
Also did i commit an appproach accordingly Lazarus/AnsiDelphi for ControlsCodePage=cCP_UTF8. I left the FieldDisplayWidth untouched and increasesd Field.Size(DataSize in bytes) *4.
Possible is also that the DisplayWidth is wrong, Michal. Can you test it again?
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/
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/
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
miab3,
ok, Michal. I've reverted this patch and fixed two other issues.
Accordingly the FireBird issue. Did you read some documentations of Firebird? Now the fields have been big enough to hold also big endian encoded UTF8-Chars but if that doesn't solve this issue i've to sart from the premisse it is not a Zeos issue...
ok, Michal. I've reverted this patch and fixed two other issues.
Accordingly the FireBird issue. Did you read some documentations of Firebird? Now the fields have been big enough to hold also big endian encoded UTF8-Chars but if that doesn't solve this issue i've to sart from the premisse it is not a Zeos issue...
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/
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/
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
miab3,
Nope i didn't know anything about it. Well that's a good point to fifure out the issue. But i'm still wondering why delphi and Lazarus behave in two different kinds. Which charset did you set for Zeos+Delphi?
And can you please use FlameRobin to check how the data is written? Are there differences too?
Nope i didn't know anything about it. Well that's a good point to fifure out the issue. But i'm still wondering why delphi and Lazarus behave in two different kinds. Which charset did you set for Zeos+Delphi?
And can you please use FlameRobin to check how the data is written? Are there differences too?
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/
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/
Hi, i found small problem with unicode when i create field longer then ~2000 chars like "VARCHAR(4000) CHARACTER SET UTF8 NOT NULL COLLATE UTF8" and store unicode string with like 3000 chars and query for that row, zeos will break encoding and shows it like in ascii not utf8 but when i open that table in editor encoding looks ok ... when change size to ~2000 chars "VARCHAR(2000) CHARACTER SET UTF8 NOT NULL COLLATE UTF8" everything is ok again
Branch Revision: 1553, FB db
Edit: Master Branch doesnt seems to have this problem
Branch Revision: 1553, FB db
Edit: Master Branch doesnt seems to have this problem
Zeos 7.0 - egonhugeist branch, DB charset and collation UTF-8, Connection UTF-8, Win7 64Bit
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
Sorien,
Acually we are on R1979 (testing).
Would you be son kind and swith the branches, verify the issue again. If the issue remaning please post again.
Do you mean the deprecated \testing-egonhugeist branch? The development has stopped there. Checkout http://svn.code.sf.net/p/zeoslib/code-0 ... es/testing instead.Branch Revision: 1553, FB db
Acually we are on R1979 (testing).
Would you be son kind and swith the branches, verify the issue again. If the issue remaning please post again.
Last edited by EgonHugeist on 09.11.2012, 10:59, edited 1 time in total.
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/
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/
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
alexs,
done Alex. But i did it in another way (more simple and the define was stupid).
R1991
done Alex. But i did it in another way (more simple and the define was stupid).
R1991
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/
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/
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
miab3,
Can you please update to 1995 on Debian. Than please do NOT use the WITH_LCONVENCODING define and try to use autoencode + FreeTDS? I think i found a common way. But i don't know if it works like i wanna have it..
Can you please update to 1995 on Debian. Than please do NOT use the WITH_LCONVENCODING define and try to use autoencode + FreeTDS? I think i found a common way. But i don't know if it works like i wanna have it..
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/
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/