Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

String literal loading special character fix - #1728

Merged
jkotas merged 2 commits into
dotnet:masterfrom
A-And:StringLoadFix
Aug 26, 2016
Merged

jkotas merged 2 commits into
dotnet:masterfrom
A-And:StringLoadFix

Conversation

@A-And

@A-And A-And commented Aug 25, 2016 •

Copy link
Copy Markdown
Contributor

Double quotes were not getting escaped and causing CPP codegen to crash.
Fix for issue #1727.

@jkotas

Double quotes were not getting escaped and causing CPP codegen to crash
@jkotas

jkotas commented Aug 25, 2016

Copy link
Copy Markdown
Member

👍

Could you please also try to remove CORERT TODO from public static Encoding GetEncoding(int codepage) to see whether there are more issues hiding?

escaped.Append("\\t");
break;
case '"':
escaped.Append("'\"");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why the single quote before the backslash?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Genuinely incorrect changes check-in. Good spot.

Double quotes were not getting escaped and causing CPP codegen to crash.
Fix for issue dotnet#1727.
@jkotas
jkotas merged commit 1bf6cbb into dotnet:master Aug 26, 2016
@A-And

A-And commented Aug 26, 2016

Copy link
Copy Markdown
Contributor Author

Removing the encoding TODO doesn't work out of the box for console output and will need Interface Dispatch working.

@A-And
A-And deleted the StringLoadFix branch September 13, 2016 23:39
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.

4 participants