Skip to content

fix: LC_ALL priority, empty lang filtering, and Windows arch detection#49

Merged
min0625 merged 1 commit into
mainfrom
fix/locale-priority-empty-lang-filtering-and-install-arch
Jun 29, 2026
Merged

fix: LC_ALL priority, empty lang filtering, and Windows arch detection#49
min0625 merged 1 commit into
mainfrom
fix/locale-priority-empty-lang-filtering-and-install-arch

Conversation

@min0625

@min0625 min0625 commented Jun 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • LC_ALL priority fixgetSystemLanguage now checks LC_ALL before LANG, matching POSIX precedence (LC_ALL overrides LANG)
  • Empty segment filteringresolveTargetLangs now ignores empty entries from MINT_TARGET_LANG, so values like en, or en,,zh-TW no longer produce blank language tags
  • Windows arch detectionscript/install.ps1 switches from RuntimeInformation.OSArchitecture to $env:PROCESSOR_ARCHITECTURE for more reliable architecture detection; case strings updated from X64/Arm64 to AMD64/ARM64
  • Docs — Added "Secure" feature bullet to README.md, README.ja.md, README.zh-TW.md; expanded security model description in AGENTS.md

Test plan

  • make check passes (lint + tests)
  • TestGetSystemLanguage covers the new LC_ALL overrides LANG when both set case
  • TestResolveTargetLangs covers config trailing comma ignored and config double comma ignored

🤖 Generated with Claude Code

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@codecov

codecov Bot commented Jun 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@min0625 min0625 force-pushed the fix/locale-priority-empty-lang-filtering-and-install-arch branch 4 times, most recently from e0dabd2 to 9c1f541 Compare June 29, 2026 07:54
- Prioritize LC_ALL over LANG in getSystemLanguage (LC_ALL has higher precedence per POSIX)
- Filter empty strings from MINT_TARGET_LANG so trailing/double commas are gracefully ignored
- Fix install.ps1 arch detection to use PROCESSOR_ARCHITECTURE env var instead of RuntimeInformation.OSArchitecture
- Add tests covering LC_ALL override and empty-segment filtering
- Document security model (system/user separation + nonce) in READMEs and AGENTS.md

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@min0625 min0625 force-pushed the fix/locale-priority-empty-lang-filtering-and-install-arch branch from 9c1f541 to 66bbf9a Compare June 29, 2026 08:08
@min0625 min0625 merged commit df7cdce into main Jun 29, 2026
6 checks passed
@min0625 min0625 deleted the fix/locale-priority-empty-lang-filtering-and-install-arch branch June 29, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant