On 13 Jan 2014, at 4:33 pm, Yu Nobuoka <nobuoka+...@vividcode.info> wrote:
> Adam Murdoch wrote >> I think we should simply have all Gradle scripts use utf-8 encoding, >> rather than make this configurable. > > Indeed it is one of the ways to avoid problems with encoding of Gradle > scripts, but there remains the problem that current Gradle system doesn't > always read Gradle scripts using UTF-8 encoding. (Current Gradle system read > Gradle scripts using default file encoding.) > > Supposing Gradle system supports only Gradle scripts with UTF-8 encoding, I > propose changing the statement `IOUtils.toString(inputStream)` on > UriResource#getText method > <https://github.com/nobuoka/gradle/blob/2d826b213293995f60ca80891094ca201acd8cf7/subprojects/core/src/main/groovy/org/gradle/api/internal/resource/UriResource.java#L60> > > into `IOUtils.toString(inputStream, "UTF-8")`. > > (I am troubled by this problem when using Gradle on Windows (because its > default file encoding is not UTF-8). I know that there is a workaround > (setting > `-Dfile.encoding=UTF-8` > in the `GRADLE_OPTS` env var), but its side effect is not wanted.) Regardless of what happens with this particular issues, running any JVM in any context without explicitly setting 'file.encoding' is a sure way to madness. -- Luke Daley Principal Engineer, Gradleware http://gradleware.com --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email