Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fish linter does not work on some non-English locales #708

Open
metiulekm opened this issue Dec 20, 2024 · 0 comments
Open

fish linter does not work on some non-English locales #708

metiulekm opened this issue Dec 20, 2024 · 0 comments

Comments

@metiulekm
Copy link

The fish linter uses the following pattern:

local efm = "%E%f (line %l): %m,%C%p^,%C%.%#"

This matches the error message for a simple script:

$ LANG=C fish --version
fish, version 3.7.1
$ cat test.fish
|
$ LANG=C fish --no-execute test.fish
test.fish (line 1): Expected a string, but found a pipe
|
^
warning: Error while reading file test.fish

However, when I set the locale to pl_PL.UTF-8, the line word changes to linia:

$ LANG=pl_PL.UTF-8 fish --no-execute test.fish
test.fish (linia 1): Expected a string, but found a pipe
|
^
warning: Wystąpił błąd podczas odczytywania pliku test.fish

This no longer matches the pattern, which means that LANG=C nvim test.fish with the fish linter setup will display the error message, but LANG=pl_PL.UTF-8 nvim test.fish will not.

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

No branches or pull requests

1 participant