Skip to content

Commit 65dcafd

Browse files
committed
Set chcp in karaf.bat to cleanly render tables on Windows platform
1 parent e4977ae commit 65dcafd

File tree

1 file changed

+5
-0
lines changed
  • assemblies/features/base/src/main/filtered-resources/resources/bin

1 file changed

+5
-0
lines changed

assemblies/features/base/src/main/filtered-resources/resources/bin/karaf.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ set DIRNAME=%~dp0%
2424
set PROGNAME=%~nx0%
2525
set ARGS=%*
2626

27+
rem cleanly display utf8 tables, chcp 65001
28+
rem this can be removed when fixed in jline
29+
chcp 65001 > nul
30+
rem as this is within the setlocal section, the change will be reverted on exit
31+
2732
rem Sourcing environment settings for karaf similar to tomcats setenv
2833

2934
if "%KARAF_SCRIPT%" == "" (

0 commit comments

Comments
 (0)