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

Fix NativeAOT publish failure on fi_FI culture #98552

Merged
merged 1 commit into from
Feb 17, 2024

Conversation

akoeplinger
Copy link
Member

This culture uses U+2212 : MINUS SIGN instead of - for negative numbers which trips up msbuild when comparing the property. Instead of using an intermediate property just inline the usage and use Contains() for better readability.

Fixes #98550

This culture uses `U+2212 : MINUS SIGN` instead of `-` for negative numbers which trips up msbuild when comparing the property.
Instead of using an intermediate property just inline the usage and use `Contains()` for better readability.

Fixes dotnet#98550
@ghost
Copy link

ghost commented Feb 16, 2024

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

Issue Details

This culture uses U+2212 : MINUS SIGN instead of - for negative numbers which trips up msbuild when comparing the property. Instead of using an intermediate property just inline the usage and use Contains() for better readability.

Fixes #98550

Author: akoeplinger
Assignees: akoeplinger
Labels:

area-NativeAOT-coreclr

Milestone: -

Copy link
Member

@filipnavara filipnavara left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

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

Thank you!

@akoeplinger akoeplinger merged commit c768315 into dotnet:main Feb 17, 2024
110 checks passed
@akoeplinger akoeplinger deleted the fix-nativeaot-fi_FI branch February 17, 2024 10:04
@akoeplinger
Copy link
Member Author

/backport to release/8.0-staging

Copy link
Contributor

Started backporting to release/8.0-staging: https://github.com/dotnet/runtime/actions/runs/7940940324

Copy link
Contributor

@akoeplinger backporting to release/8.0-staging failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: Fix NativeAOT publish failure on fi_FI culture
Using index info to reconstruct a base tree...
M	src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.SingleEntry.targets
Falling back to patching base and 3-way merge...
Auto-merging src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.SingleEntry.targets
CONFLICT (content): Merge conflict in src/coreclr/nativeaot/BuildIntegration/Microsoft.DotNet.ILCompiler.SingleEntry.targets
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 Fix NativeAOT publish failure on fi_FI culture
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

Copy link
Contributor

@akoeplinger an error occurred while backporting to release/8.0-staging, please check the run log for details!

Error: git am failed, most likely due to a merge conflict.

akoeplinger added a commit to akoeplinger/runtime that referenced this pull request Feb 17, 2024
This culture uses `U+2212 : MINUS SIGN` instead of `-` for negative numbers which trips up msbuild when comparing the property.
Instead of using an intermediate property just inline the usage and use `Contains()` for better readability.

Fixes dotnet#98550

(cherry picked from commit c768315)
akoeplinger added a commit to akoeplinger/runtime that referenced this pull request Feb 17, 2024
jkotas pushed a commit that referenced this pull request Feb 17, 2024
akoeplinger added a commit that referenced this pull request Feb 20, 2024
This culture uses `U+2212 : MINUS SIGN` instead of `-` for negative numbers which trips up msbuild when comparing the property.
Instead of using an intermediate property just inline the usage and use `Contains()` for better readability.

Fixes #98550

(cherry picked from commit c768315)
@github-actions github-actions bot locked and limited conversation to collaborators Mar 19, 2024
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.

NativeAOT publish fails on fi_FI.utf8 locale
3 participants