Skip to content

Commit

Permalink
fix #1619 for utf-8 encoding for writing log files
Browse files Browse the repository at this point in the history
  • Loading branch information
gschueler committed Apr 27, 2016
1 parent 1e06f1a commit 87f7831
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -45,7 +45,7 @@ class FSStreamingLogReader implements ReverseSeekingStreamingLogReader {
this.rundeckLogFormat=rundeckLogFormat
}
private void detectLegacyLogFile(){
file.withReader {reader->
file.withReader('UTF-8') {reader->
detectedFormat=RundeckLogFormat.detectFormat(reader.readLine())
detected=true
}
Expand Down
Expand Up @@ -51,7 +51,7 @@ class FSStreamingLogWriter implements StreamingLogWriter {
bytesWritten = 0
}
private write(String val) {
def bytes = val.bytes
def bytes = val.getBytes("UTF-8")
output.write(bytes)
bytesWritten += bytes.length
}
Expand Down

0 comments on commit 87f7831

Please sign in to comment.