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

Make BundleLocalizedApp test stop requiring UTF8 output encoding #87176

Merged
merged 1 commit into from Jun 7, 2023

Conversation

elinor-fung
Copy link
Member

The test validates that single-file probing is able to find its embedded resource assemblies. It is currently relying on running chcp to set the code page to UTF8 before launching the single-file app - which doesn't seem to always work (I'm not sure why - maybe something else sets it in between). We could have the app explicitly set the Console.Output.Encoding and then have the test set the ProcessStartInfo.StandardOutputEncoding, but the encoding is irrelevant to the actual test, so I figured it would just be noise and instead we'd avoid depending on it by switching the values in the resource to be ASCII.

FIxes #85993

@ghost
Copy link

ghost commented Jun 6, 2023

Tagging subscribers to this area: @agocke, @vitek-karas, @VSadov
See info in area-owners.md if you want to be subscribed.

Issue Details

The test validates that single-file probing is able to find its embedded resource assemblies. It is currently relying on running chcp to set the code page to UTF8 before launching the single-file app - which doesn't seem to always work (I'm not sure why - maybe something else sets it in between). We could have the app explicitly set the Console.Output.Encoding and then have the test set the ProcessStartInfo.StandardOutputEncoding, but the encoding is irrelevant to the actual test, so I figured it would just be noise and instead we'd avoid depending on it by switching the values in the resource to be ASCII.

FIxes #85993

Author: elinor-fung
Assignees: elinor-fung
Labels:

area-Single-File

Milestone: -

Copy link
Member

@vitek-karas vitek-karas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice - thanks!

@elinor-fung elinor-fung merged commit 22c16ca into dotnet:main Jun 7, 2023
84 checks passed
@elinor-fung elinor-fung deleted the localizedAppTest branch June 7, 2023 14:09
@ghost ghost locked as resolved and limited conversation to collaborators Jul 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AppHost.Bundle.Tests.BundleLocalizedApp.Bundled_Localized_App_Run_Succeeds failing
2 participants