Project

Profile

Help

Revision 52497ec3

Added by Michael Kay over 7 years ago

Fix bug 2081 (normalize line endings in library modules)

View differences:

latest9.5/hej/net/sf/saxon/query/QueryParser.java
399 399
    public final void parseLibraryModule(String queryString, /*@NotNull*/ QueryModule env)
400 400
            throws XPathException {
401 401
        this.env = env;
402
        nameChecker = env.getConfiguration().getNameChecker();
402
        final Configuration config = env.getConfiguration();
403
        if (config.getXMLVersion() == Configuration.XML10) {
404
            queryString = normalizeLineEndings10(queryString);
405
        } else {
406
            queryString = normalizeLineEndings11(queryString);
407
        }
408
        nameChecker = config.getNameChecker();
403 409
        Executable exec = env.getExecutable();
404 410
        if (exec == null) {
405 411
            throw new IllegalStateException("Query library module has no associated Executable");

Also available in: Unified diff