Menu

#1353 HSQLDB not working with some IBM Codepages, HSQLDB is not binary compatible between different plattforms

current-release
closed-fixed
8
2015-06-30
2014-07-09
No

Because in the Class ScriptWriterText the platform (System.getProperty("line.separator") specific line separator is taken, the files are not portable and the database don't start anymore.

The real problem at the end is, that the LineReader Class only detect 0x0A and 0x0D.
On IBM Code Page 500 for example, the line separator is 0x0F.

Resolution:

Define a permanent Hex Code for the line.separator (platform independent).

I have changed the code in the ScriptWriterText Class which resolves the problem.
...
public static byte BYTES_LINE_SEP;
...
BYTES_LINE_SEP = 0x0A;

This version runs now on our system (Linux and IBM USS)

Discussion

  • Fred Toussi

    Fred Toussi - 2015-02-11
    • status: open --> open-fixed
     
  • Fred Toussi

    Fred Toussi - 2015-02-11

    Thanks for reporting.

    Fixed in SVN by using 0x0A when the separator is not CR.

     
  • Fred Toussi

    Fred Toussi - 2015-06-30
    • Owner: Anonymous --> Fred Toussi
    • Status: open-fixed --> closed-fixed
     

Log in to post a comment.