lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (LUCENE-6563) sun.jnu.encoding to match file.encoding system property (MockFileSystemTestCase.testURI)
Date Fri, 12 Jun 2015 20:19:00 GMT


ASF GitHub Bot commented on LUCENE-6563:

GitHub user cpoerschke opened a pull request:

    LUCENE-6563: sun.jnu.encoding to match file.encoding system property


You can merge this pull request into a Git repository by running:

    $ git pull trunk-sun-jnu-encoding

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #152
commit 58baae43edff917d46d1799d0e24b7f7ab828565
Author: Christine Poerschke <>
Date:   2015-06-12T19:00:25Z

    LUCENE-????: changed common-build.xml to ensure sun.jnu.encoding matches file.encoding
system property
    * adding -Dtests.sun.jnu.encoding to common-build.xml (it is to take the same value as
    * add to (for illustration purposes only) the sun.jnu.encoding
system property
    * ant test -Dtestcase=TestVerboseFS -Dtests.method=testURI -Dtests.file.encoding=UTF-8
      fails (for example) with 'Oracle Corporation 1.8.0_45 (64-bit)' when the
      default sun.jnu.encoding system property is (for example) ANSI_X3.4-1968
    related links/tickets:
    test failure details:
    NOTE: reproduce with: ant test  -Dtestcase=TestVerboseFS -Dtests.method=testURI -Dtests.seed=31F5C6E85DAF4E6B
-Dtests.slow=true -Dtests.locale=no -Dtests.timezone=Australia/Melbourne -Dtests.asserts=true
       0.12s | TestVerboseFS.testURI <<<
    Throwable #1: java.nio.file.InvalidPathException: Malformed input or input contains unmappable
characters: ??
            at __randomizedtesting.SeedInfo.seed([31F5C6E85DAF4E6B:B847BD4395B0145A]:0)
            at sun.nio.fs.UnixPath.encode(
            at sun.nio.fs.UnixPath.<init>(
            at sun.nio.fs.UnixFileSystem.getPath(
            at sun.nio.fs.AbstractPath.resolve(
            at org.apache.lucene.mockfile.FilterPath.resolve(
            at org.apache.lucene.mockfile.MockFileSystemTestCase.testURI(
    test case code snippet:
    69 assumeTrue(Charset.defaultCharset().name() + " can't encode chinese",
    70            Charset.defaultCharset().newEncoder().canEncode("中å<9B>1/2"));
    71 Path f3 = dir.resolve("中å<9B>1/2");


> sun.jnu.encoding to match file.encoding system property (MockFileSystemTestCase.testURI)
> ----------------------------------------------------------------------------------------
>                 Key: LUCENE-6563
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Wish
>            Reporter: Christine Poerschke
>            Priority: Minor
> {{ant test -Dtestcase=TestVerboseFS -Dtests.method=testURI -Dtests.file.encoding=UTF-8}}
fails (for example) with 'Oracle Corporation 1.8.0_45 (64-bit)' when the default {{sun.jnu.encoding}}
system property is (for example) {{ANSI_X3.4-1968}}
> [details to follow]

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message