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

t/ack-x.t may fail on systems where a non-English locale is active #212

Open
eserte opened this issue Jun 26, 2019 · 2 comments
Open

t/ack-x.t may fail on systems where a non-English locale is active #212

eserte opened this issue Jun 26, 2019 · 2 comments
Labels

Comments

@eserte
Copy link

eserte commented Jun 26, 2019

t/ack-x.t may fail on systems where a non-English locale is active (e.g. LC_ALL=de_DE.UTF-8):

    
    #   Failed test 'Error \#2 matches'
    #   at t/ack-x.t line 98.
    #                   'ack: /tmp/oFxPwydBrG: Keine Berechtigung'
    #     doesn't match '(?^:\/tmp\/oFxPwydBrG\:\ Permission\ denied)'
    # Looks like you failed 1 test of 5.

#   Failed test 'GH \#175'
#   at t/ack-x.t line 106.
# Looks like you failed 1 test of 2.
t/ack-x.t .................... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests 
@n1vux
Copy link
Contributor

n1vux commented Jun 26, 2019

Maybe we need two versions of the test, and select strict (exact expected-message) vs looser (any message) based on Locale. (Or equivalently, have looser test always and SKIP strict test if locale not one of the EN* locales.)

@petdance petdance added the tests label Jul 23, 2019
@petdance petdance changed the title Locale-specific error messages t/ack-x.t may fail on systems where a non-English locale is active Jul 23, 2019
@eserte
Copy link
Author

eserte commented Mar 13, 2021

Happens also with PETDANCE/ack-v3.5.0.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants