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

Allow blitting types with Char fields - #1030

Merged
MichalStrehovsky merged 1 commit into
dotnet:masterfrom
MichalStrehovsky:allowChar
Mar 19, 2016
Merged

MichalStrehovsky merged 1 commit into
dotnet:masterfrom
MichalStrehovsky:allowChar

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

Blitting Chars is fine if the target is Unicode.

One of the test libraries in CoreCLR test suite uses DateTime.Now and it
turns out this is the only thing we need to support it. I hit this while
trying to run some delegate tests.


namespace Internal.TypeSystem
{
public enum StringFormat

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.

It may be nice to have Interop or PInvoke in the name to make it clear what it is for.

@jkotas

jkotas commented Mar 19, 2016

Copy link
Copy Markdown
Member

it turns out this is the only thing we need to support it

Is it for the timezone stuff?

@jkotas

jkotas commented Mar 19, 2016

Copy link
Copy Markdown
Member

LGTM

@MichalStrehovsky

Copy link
Copy Markdown
Member Author

is it for the timezone stuff?

Yup - TIME_DYNAMIC_ZONE_INFORMATION

Blitting Chars is fine if the target is Unicode.

One of the test libraries in CoreCLR test suite uses DateTime.Now and it
turns out this is the only thing we need to support it. I hit this while
trying to run some delegate tests.
MichalStrehovsky added a commit that referenced this pull request Mar 19, 2016
Allow blitting types with Char fields
@MichalStrehovsky
MichalStrehovsky merged commit b3f83dd into dotnet:master Mar 19, 2016
@MichalStrehovsky
MichalStrehovsky deleted the allowChar branch March 19, 2016 18:01
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.

3 participants