Use UTF-8 as string encoding

This commit is contained in:
Simon Willnauer 2014-05-16 15:45:09 +02:00
parent bfeb5a7120
commit c561900512
1 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@
package org.elasticsearch.bootstrap;
import com.google.common.base.Charsets;
import org.elasticsearch.ExceptionsHelper;
import org.elasticsearch.Version;
import org.elasticsearch.common.collect.Tuple;
@ -153,7 +154,7 @@ public class Bootstrap {
FileSystemUtils.mkdirs(fPidFile.getParentFile());
}
FileOutputStream outputStream = new FileOutputStream(fPidFile);
outputStream.write(Long.toString(JvmInfo.jvmInfo().pid()).getBytes());
outputStream.write(Long.toString(JvmInfo.jvmInfo().pid()).getBytes(Charsets.UTF_8));
outputStream.close();
fPidFile.deleteOnExit();