Skip to content

Commit 929a514

Browse files
[windows] Change codepage to 65001
Karaf 4.4.9 has issues drawing table frames on non-UTF8 terminals. apache/karaf#2197 Select a proper UTF8 codepage. Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
1 parent 888b428 commit 929a514

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • distributions/openhab/src/main/resources/bin

distributions/openhab/src/main/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 enabling workaround for utf8 tables, chcp 65001
28+
rem TODO: remove when upgrading from 4.4.9 to 4.4.10 or 4.5.0
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)