mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-01 16:39:11 +00:00
Use UTF-8 as string encoding
This commit is contained in:
parent
bfeb5a7120
commit
c561900512
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
package org.elasticsearch.bootstrap;
|
package org.elasticsearch.bootstrap;
|
||||||
|
|
||||||
|
import com.google.common.base.Charsets;
|
||||||
import org.elasticsearch.ExceptionsHelper;
|
import org.elasticsearch.ExceptionsHelper;
|
||||||
import org.elasticsearch.Version;
|
import org.elasticsearch.Version;
|
||||||
import org.elasticsearch.common.collect.Tuple;
|
import org.elasticsearch.common.collect.Tuple;
|
||||||
@ -153,7 +154,7 @@ public class Bootstrap {
|
|||||||
FileSystemUtils.mkdirs(fPidFile.getParentFile());
|
FileSystemUtils.mkdirs(fPidFile.getParentFile());
|
||||||
}
|
}
|
||||||
FileOutputStream outputStream = new FileOutputStream(fPidFile);
|
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();
|
outputStream.close();
|
||||||
|
|
||||||
fPidFile.deleteOnExit();
|
fPidFile.deleteOnExit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user