Skip to content

Commit 9944047

Browse files
committed
Fixed an issue where characters would appear broken when running batch files.
1 parent bf65e5d commit 9944047

File tree

5 files changed

+22
-4
lines changed

5 files changed

+22
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@
8080
- Detailed failure reasons: Specify which rules were violated
8181
- Database list: Display detailed info including server, DB name, user, permissions
8282

83+
- **Fixed Character Corruption on Batch File Execution**
84+
- Execute `cls` immediately after `@echo off` to clear initial screen
85+
- Redirect stderr with `chcp 65001 >nul 2>&1`
86+
- Execute `cls` again after code page change to remove corrupted characters
87+
- Provide clean screen on batch file startup
88+
8389
### 📦 Distribution Improvements (2025-10-15)
8490
- **Auto-generate Batch Files**: Generate language-specific batch files in `create-release.js`
8591
- `run.bat`: Automatically includes `--lang=en`

CHANGELOG_KR.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@
8080
- 실패 원인 상세 설명: 어떤 규칙을 위반했는지 명시
8181
- 데이터베이스 목록: 서버, DB명, 사용자, 권한 등 상세 정보 표시
8282

83+
- **배치 파일 실행 시 문자 깨짐 현상 수정**
84+
- `@echo off` 직후 `cls` 실행하여 초기 화면 정리
85+
- `chcp 65001 >nul 2>&1`로 stderr까지 리다이렉트
86+
- 코드페이지 전환 후 다시 `cls` 실행하여 깨진 문자 제거
87+
- 배치 파일 시작 시 깔끔한 화면 제공
88+
8389
### 📦 배포판 개선 (2025-10-15)
8490
- **배치 파일 자동 생성**: `create-release.js`에서 언어별 배치 파일 생성
8591
- `run.bat`: `--lang=en` 자동 포함

create-release.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ console.log('- 배치 실행 파일 생성...');
8585

8686
// run.bat (English version)
8787
const runBatContent = `@echo off
88-
chcp 65001 >nul
88+
cls
89+
chcp 65001 >nul 2>&1
8990
cls
9091
9192
echo.
@@ -104,7 +105,8 @@ console.log(` ✅ run.bat 생성 완료 (English)`);
104105

105106
// 실행하기.bat (Korean version)
106107
const runBatKrContent = `@echo off
107-
chcp 65001 >nul
108+
cls
109+
chcp 65001 >nul 2>&1
108110
cls
109111
110112
echo.

run.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
@echo off
2-
chcp 65001 > nul
2+
cls
3+
chcp 65001 >nul 2>&1
4+
cls
35
color 0F
46

57
echo.

실행하기.bat

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
@echo off
2-
chcp 65001 > nul
2+
cls
3+
chcp 65001 >nul 2>&1
4+
cls
35
color 0F
46

57
echo.

0 commit comments

Comments
 (0)