Skip to content

Test case uses locale-dependent output #137116

Closed
@crlf0710

Description

@crlf0710

I was running ui-tests, and this test case fail on my windows machine:

---- [ui] tests\ui\unpretty\staged-api-invalid-path-108697.rs stdout ----
$DIR\lol
$DIR\staged-api-invalid-path-108697.rs
Saved the actual stderr to "L:\\ThirdParty\\rust\\build\\x86_64-pc-windows-msvc\\test\\ui\\unpretty\\staged-api-invalid-path-108697\\staged-api-invalid-path-108697.stderr"
diff of stderr:

-       error: couldn't read `$DIR/lol`: No such file or directory (os error 2)
+       error: couldn't read `$DIR/lol`: 系统找不到指定的文件。 (os error 2)
2         --> $DIR/staged-api-invalid-path-108697.rs:8:1
3          |
4       LL | mod foo;

Maybe we should not rely on such locale-dependent output, or maybe we could configure Rust standard library/compiler to use English as UI language.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustA-test-infraArea: test infrastructure (may span bootstrap/compiletest/more)A-testsuiteArea: The testsuite used to check the correctness of rustcC-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions