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

Locale-specific error messages #212

Open
eserte opened this issue Jun 26, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@eserte
Copy link

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

This comment has been minimized.

Copy link
Contributor

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.