Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-6012

GroovyScriptEngine uses UTF-8 on initial compilation, system file.encoding on recompilation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.1
    • 2.1.8
    • GroovyScriptEngine
    • None
    • JDK 1.6.0.37, Windows 32 bit

    Description

      The first time a file is complied by GSE it is always taken as UTF-8. After a change to the script the recompliation uses file.encoding system property instead. This is critical especially on Windows environments where the JVM default file.encoding to Cp1252 (or other 8-bit regional flavors).

      Attachments

        1. a.patch
          2 kB
          Jochen Theodorou
        2. UTF8Script.groovy
          0.2 kB
          Jochen Eddelbuettel
        3. GSEProblem.java
          1 kB
          Jochen Eddelbuettel

        Issue Links

          Activity

            People

              melix Cédric Champeau
              eddelplus Jochen Eddelbuettel
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: