Skip to content

plugin cli: force LC_ALL=C so plugin ids validate under any locale - #78

Open
kvnloo wants to merge 1 commit into
stagingfrom
factory/tip-7387-plugin-id-locale-collation
Open

kvnloo wants to merge 1 commit into
stagingfrom
factory/tip-7387-plugin-id-locale-collation

Conversation

@kvnloo

@kvnloo kvnloo commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Export LC_ALL=C in omarchy-plugin-validate, omarchy-plugin-remove, and omarchy-plugin-update so [A-Za-z0-9] id checks are ASCII under every locale.
  • Extend plugin-validate-test.sh with locale/ASCII and non-ASCII id cases.

Tip leaf of omacom#7387 (read-only). Gap on staging: no LC_ALL=C around the three id regexes.

Test plan

  • bash test/shell.d/plugin-validate-test.sh (21 ok; tr/lv locale cases skipped — locales not installed, as tip documents)
  • Working-tree blobs match tip 7ae70097c497 exactly

POSIX range expressions follow collation, so locales that omit Latin
letters (tr_TR, lv_LV) reject valid ASCII plugin ids. Export LC_ALL=C in
validate/remove/update so [A-Za-z0-9] means ASCII everywhere.

Tip: omacom#7387
@kvnloo kvnloo added the keep pr-janitor: never auto-close label Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

keep pr-janitor: never auto-close

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant