[PR #17] [MERGED] Added --batch-encoding and --use-batch-newline-crlf #46

Closed
opened 2026-03-04 12:24:14 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/cascadium/wsl-windows-toolbar-launcher/pull/17
Author: @suikwasha
Created: 8/9/2020
Status: Merged
Merged: 8/9/2020
Merged by: @fquinner

Base: masterHead: add-batch-encoding-option


📝 Commits (1)

  • 4d4c746 Added --batch-encoding and --use-batch-newline-crlf

📊 Changes

1 file changed (+19 additions, -2 deletions)

View changed files

📝 wsl_windows_toolbar.py (+19 -2)

📄 Description

Added support for some environments (ex: japanese)
In japanese environment, cmd.exe's default codepage is CP932 so bat file should be saved with CP932 and CRLF

I added some optional arguments to specify encoding and newline character

$python3 wsl_windows_toolbar.py --batch-encoding CP932 --use-batch-newline-crlf

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/cascadium/wsl-windows-toolbar-launcher/pull/17 **Author:** [@suikwasha](https://github.com/suikwasha) **Created:** 8/9/2020 **Status:** ✅ Merged **Merged:** 8/9/2020 **Merged by:** [@fquinner](https://github.com/fquinner) **Base:** `master` ← **Head:** `add-batch-encoding-option` --- ### 📝 Commits (1) - [`4d4c746`](https://github.com/cascadium/wsl-windows-toolbar-launcher/commit/4d4c746d6810f7587fcac5f73b4112951d341b06) Added --batch-encoding and --use-batch-newline-crlf ### 📊 Changes **1 file changed** (+19 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `wsl_windows_toolbar.py` (+19 -2) </details> ### 📄 Description Added support for some environments (ex: japanese) In japanese environment, cmd.exe's default codepage is CP932 so bat file should be saved with CP932 and CRLF I added some optional arguments to specify encoding and newline character ``` $python3 wsl_windows_toolbar.py --batch-encoding CP932 --use-batch-newline-crlf ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-04 12:24:14 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/wsl-windows-toolbar-launcher#46
No description provided.