Recent

Author Topic: PowerPC request for testing  (Read 9678 times)

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: PowerPC request for testing
« Reply #15 on: November 09, 2014, 03:47:41 pm »
The program then returns

Code: [Select]
*** Opening: /....................../fcl-db/examples/Client.dbf
Database tablelevel: 7
Database codepage:   1252
That indicates something wrong with the tdbf code as by default dbftool should create tablelevel 4 (DBase IV) files, not tablelevel 7 (DBase 7)
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

jwdietrich

  • Hero Member
  • *****
  • Posts: 1042
    • formatio reticularis
Re: PowerPC request for testing
« Reply #16 on: November 10, 2014, 10:21:11 pm »
Edit: noticed that running --createdemo under FPC trunk with Windows seems to create dbfs in the application dir, not in the current dir. Sorry about that. Going to fix it first...

That and your suggestion:

If you'd like to, you could compile/run <fpc source dir>\packages\fcl-db\examples\dbftool.lpr with the test dbf in the same directory and post the entire output - it should list the field contents etc which I suspect it won't...

set me on the wrong track. Of course, it would be more obvious if the program used the current default directory, but these hints lead me to the assumption that the DBF file to be inspected should be in the program's directory.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.0.6 | FPC 3.0.4 | PPC, Intel, ARM | macOS, Windows, Linux

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: PowerPC request for testing
« Reply #17 on: November 11, 2014, 09:25:12 am »
Well.....,  I can hardly fix the 2.6.4 version as there are no 2.6.x releases planned. I'm putting all the fixes/workarounds (e.g. findfirst .dbf versus .DBF) in the trunk version which you could eventually test.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

jwdietrich

  • Hero Member
  • *****
  • Posts: 1042
    • formatio reticularis
Re: PowerPC request for testing
« Reply #18 on: November 11, 2014, 09:27:56 pm »
Well.....,  I can hardly fix the 2.6.4 version as there are no 2.6.x releases planned. I'm putting all the fixes/workarounds (e.g. findfirst .dbf versus .DBF) in the trunk version which you could eventually test.

Yes, of course, I am willing to do that.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.0.6 | FPC 3.0.4 | PPC, Intel, ARM | macOS, Windows, Linux

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: PowerPC request for testing
« Reply #19 on: November 12, 2014, 09:01:11 am »
Thanks, I appreciate it.

BTW, for clarity: that "eventually" in my post means "when I'm eventually done with tweaking the code in between the other things I do" rather than "when you eventually get around to testing" ;)
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: PowerPC request for testing
« Reply #20 on: November 18, 2014, 12:26:16 pm »
Hi jwdietrich & the rest,

I can reproduce the issue on another architecture:

Tested on big endian MIPS with FPC trunk:
- dbftool creates and reads tablelevel 4 (DBase4) and 7 (Visual dBase VII) ok
- test dbf from the bug report is identified as tablelevel 7, code page 1252 (OK) but no data shown.
Reading the dbf on x86 Windows does show data

=> i.e. same symptom as on OSX PPC suggesting an endian issue
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified