We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77891da commit 1200333Copy full SHA for 1200333
src/main/java/org/elasticsearch/bootstrap/Bootstrap.java
@@ -19,6 +19,7 @@
19
20
package org.elasticsearch.bootstrap;
21
22
+import com.google.common.base.Charsets;
23
import org.elasticsearch.ExceptionsHelper;
24
import org.elasticsearch.Version;
25
import org.elasticsearch.common.collect.Tuple;
@@ -153,7 +154,7 @@ public static void main(String[] args) {
153
154
FileSystemUtils.mkdirs(fPidFile.getParentFile());
155
}
156
FileOutputStream outputStream = new FileOutputStream(fPidFile);
- outputStream.write(Long.toString(JvmInfo.jvmInfo().pid()).getBytes());
157
+ outputStream.write(Long.toString(JvmInfo.jvmInfo().pid()).getBytes(Charsets.UTF_8));
158
outputStream.close();
159
160
fPidFile.deleteOnExit();
0 commit comments