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

corrected line breaks within the file dialog resource strings. #978

Closed
wants to merge 1 commit into from

Conversation

mjjames
Copy link

@mjjames mjjames commented Jun 15, 2019

Fixes #977

I noticed in all of the other resource strings only \n is used not \r\n. Updated all of the file dialog resources to use \n instead of the \r\n.

@ghost ghost requested review from vatsan-madhavan, rladuca, ryalanms and stevenbrix June 15, 2019 20:50
@dnfclas
Copy link

dnfclas commented Jun 15, 2019

CLA assistant check
All CLA requirements met.

@Gillibald
Copy link

Isn't the issue that \r\n isn't recognized as a line break? This is just hiding it. \r\n is totally valid on Windows.

@mjjames
Copy link
Author

mjjames commented Jun 16, 2019 via email

@weltkante
Copy link

I agree with @Gillibald this doesn't seem to be the right fix, see note on issue. If \n would work then you'd see a line break after the (literal) \r

Can you make sure you can reproduce the original bug without your fix?

@mjjames
Copy link
Author

mjjames commented Jun 17, 2019

more than happy to abandon this PR then. The issue 100% does exist as is, my repo in the original bug filing shows the issue as does a bug raised on the Nuget Package Explorer repository NuGetPackageExplorer/NuGetPackageExplorer#705

@weltkante
Copy link

weltkante commented Jun 17, 2019

@mjjames I'm not saying the issue doesn't exist, I just would like to get to the root cause of the problem. So you are saying you can reproduce this bug with a custom WPF build using the original strings (to make sure the bug isn't already fixed in master) and the bug goes away after removing \r in the resource xml files and rebuilding? I don't have a custom WPF build setup currently, but I can try making one, to assist in debugging the root cause.

@grubioe grubioe added the PR metadata: Label to tag PRs, to facilitate with triage label Jun 17, 2019
@stevenbrix
Copy link
Contributor

@mjjames don't abandon this pr just yet. Do we know when this started happening? I'd be curious if this has been in WPF since we first ported it to core, or if something regressed along the way

@weltkante
Copy link

@stevenbrix its a general problem and also present in WinForms (see dotnet/winforms#1076)

As said before I don't think this PR fixes the issue, the problem is (probably) that nobody is translating C# escape sequences in XLF files, and that problem should be independent of \r\n vs \n issues

@weltkante
Copy link

#977 should have been fixed by #1285 so this PR probably can be dropped now, there should be no escape sequences left to replace

@mjjames mjjames closed this Jul 22, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Apr 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

File Dialog messages that contain \r\n render the \r\n as text
6 participants