Project

Profile

Help

Bug #6268

closed

SaxonC HE 12.4 for both the command tools as well as the testXSLT/XPath/XQuery C and C++ tests gives warning or error "Illegal format in tzmappings file: illegal null character found at line 1, offset 47."

Added by Martin Honnen 5 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Normal
Category:
Saxon-C Internals
Start date:
2023-11-29
Due date:
% Done:

0%

Estimated time:
Found in version:
12.4
Fixed in version:
Platforms:

Description

I have just installed and tested SaxonC HE 12.4 under Windows (11), unfortunately I have found that both the Transform.exe and the Query.exe command line tools as well as the various testXSLT/XQuery/XPath C++ and C test programs do run but emit a warning "Illegal format in tzmappings file: illegal null character found at line 1, offset 47.".

Sample Query.exe output:

PS C:\Users\marti> & 'C:\Program Files\Saxonica\libsaxon-HEC-windows-amd64-v12.4\command\Query.exe' -qs:"current-dateTime()"
Illegal format in tzmappings file: illegal null character found at line 1, offset 47.
<?xml version="1.0" encoding="UTF-8"?>2023-11-29T20:57:04.8724797+01:00
Actions #1

Updated by Martin Honnen 5 months ago

A sample Python program doing e.g.

from saxonche import PySaxonProcessor

with PySaxonProcessor(license=False) as saxon_proc:
    print(saxon_proc.version)

    xpath_processor = saxon_proc.new_xpath_processor()

    print(xpath_processor.evaluate('current-dateTime()'))

with the official SaxonCHE 12.4 pacakge also outputs that warning on the error output:

SaxonC-HE 12.4 from Saxonica
2023-11-29T21:04:19.0559953+01:00
Illegal format in tzmappings file: illegal null character found at line 1, offset 47.
Actions #2

Updated by Matt Patterson 5 months ago

This sounds like it could be related to https://github.com/oracle/graal/issues/3366, but I don't understand how, given that we're using a much more recent Graal build. Seems like a reasonable starting point for the investigation.

Actions #3

Updated by Norm Tovey-Walsh 5 months ago

At a quick skim, that issue says the GraalVM folks fixed it for JDK12+, but we built Saxon 12.4 with JDK11. Sigh.

Is this limited to Windows 11? I confess we don't currently have any Windows 11 machines around to test with. I've just configured a Windows 11 ARM VM for experimenting with ARM builds, but we don't have those yet so it's not useful for testing.

I was going to propose that we move to JDK 17 and the corresponding GraalVM release for Saxon 13, but perhaps we should try that on Windows for, uhm, 12.4.1.

Is this going to effect the PHP and Python tooling as well? I sort of assume so...

Actions #4

Updated by Matt Patterson 5 months ago

My skim read was that it was fixed by the Graal release we’re using, and that the underlying problem began with JDK 12, which is why I was baffled. I am going to take a closer look shortly.

Actions #5

Updated by Martin Honnen 5 months ago

Norm Tovey-Walsh wrote in #note-3:

At a quick skim, that issue says the GraalVM folks fixed it for JDK12+, but we built Saxon 12.4 with JDK11. Sigh.

Is this limited to Windows 11?

I have now tested the command tools of SaxonC HE 12.4 on AMD64 Linux under Ubuntu 22.04 WSL, as well as the testXPath/XQuery/XSLT30 programs and none of them emits that warning/error about the tzmappings file, so based on that I would say the problem is limited to Windows, it doesn't occur under Linux.

Actions #6

Updated by O'Neil Delpratt 5 months ago

On Windows 10 running python saxon_example2.py under directory pypi\sample reproduces the same message.

Actions #7

Updated by Norm Tovey-Walsh 5 months ago

  • Status changed from New to Closed

Fixed in SaxonC 12.4.1 released today.

Please register to edit this issue

Also available in: Atom PDF