Commit 1c12f33
committed
Ensure that
The `--perl-regexp` option of `grep` requires a "unibyte or UTF-8"
locale, simply refusing to work at all if neither `LANG`, `LC_ALL` nor
`LC_CTYPE` are set.
Typically, this would not be a problem because `/etc/profile` ensures
that `LC_CTYPE` is set. But GitHub workflows call `bash` with
`-noprofile`, therefore we need to do set `LC_CTYPE` here. Just like
`/etc/profile` does, we won't override any locale the user might have
configured explicitly.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>grep -P works1 parent 2b730dd commit 1c12f33
3 files changed
+11
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
65 | 72 | | |
66 | 73 | | |
67 | 74 | | |
| |||
0 commit comments