This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 07bdbddf16 [IOTDB-4810] Fix print-tsfile-sketch.bat bug when reading
measurementID containing Chinese (#7831)
07bdbddf16 is described below
commit 07bdbddf16e07ee2b381b8a6dc87ab5a659322e8
Author: Rui,Lei <[email protected]>
AuthorDate: Mon Oct 31 20:42:24 2022 +0800
[IOTDB-4810] Fix print-tsfile-sketch.bat bug when reading measurementID
containing Chinese (#7831)
---
.../assembly/resources/tools/tsfileToolSet/print-tsfile-sketch.bat | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git
a/server/src/assembly/resources/tools/tsfileToolSet/print-tsfile-sketch.bat
b/server/src/assembly/resources/tools/tsfileToolSet/print-tsfile-sketch.bat
index b25bcfe3ab..ba930fe4b5 100644
--- a/server/src/assembly/resources/tools/tsfileToolSet/print-tsfile-sketch.bat
+++ b/server/src/assembly/resources/tools/tsfileToolSet/print-tsfile-sketch.bat
@@ -32,6 +32,11 @@ popd
if NOT DEFINED MAIN_CLASS set
MAIN_CLASS=org.apache.iotdb.db.tools.TsFileSketchTool
if NOT DEFINED JAVA_HOME goto :err
+@REM
-----------------------------------------------------------------------------
+@REM JVM Opts
+set JAVA_OPTS=-ea^
+ -Dfile.encoding=UTF-8
+
@REM
-----------------------------------------------------------------------------
@REM ***** CLASSPATH library setting *****
@REM Ensure that any user defined CLASSPATH variables are not used on startup
@@ -46,7 +51,7 @@ goto :eof
@REM
-----------------------------------------------------------------------------
:okClasspath
-"%JAVA_HOME%\bin\java" -cp "%CLASSPATH%" %MAIN_CLASS% %*
+"%JAVA_HOME%\bin\java" %JAVA_OPTS% -cp "%CLASSPATH%" %MAIN_CLASS% %*
goto finally