[PR #10] [CLOSED] Allow program to work in non-English languages #24034

Open
opened 2026-01-31 09:01:01 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/10
Author: @gschizas
Created: 8/13/2017
Status: Closed

Base: masterHead: master


📝 Commits (2)

  • c312cf5 Simplify parsing (reduce complexity)
  • 27e7bd0 Use invariant culture for parsing numbers

📊 Changes

1 file changed (+14 additions, -17 deletions)

View changed files

📝 tools/ColorTool/ColorTool/XmlSchemeParser.cs (+14 -17)

📄 Description

Parsing a number should almost always contain the culture that the parsing should happen, otherwise local culture may break it. In the case of a standardized format (e.g. the itermcolor plist XML standard), the numbers use "." as the decimal separator, so the proper culture is the InvariantCulture. This is by definition the same as en_US, but it's more suited for parsing standardized strings such as this.


🔄 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/microsoft/terminal/pull/10 **Author:** [@gschizas](https://github.com/gschizas) **Created:** 8/13/2017 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`c312cf5`](https://github.com/microsoft/terminal/commit/c312cf5fcedb742f0f895a61dfc23f4b807c81d6) Simplify parsing (reduce complexity) - [`27e7bd0`](https://github.com/microsoft/terminal/commit/27e7bd0b05c63fabe9b5edc14cc300caea36bcd8) Use invariant culture for parsing numbers ### 📊 Changes **1 file changed** (+14 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `tools/ColorTool/ColorTool/XmlSchemeParser.cs` (+14 -17) </details> ### 📄 Description Parsing a number should almost always contain the culture that the parsing should happen, otherwise local culture may break it. In the case of a standardized format (e.g. the itermcolor plist XML standard), the numbers use "." as the decimal separator, so the proper culture is the InvariantCulture. This is by definition the same as en_US, but it's more suited for parsing standardized strings such as this. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:01:01 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#24034