Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Add the default globalization implementation for Linux #111

Merged
merged 1 commit into from
Oct 24, 2015
Merged

Add the default globalization implementation for Linux #111

merged 1 commit into from
Oct 24, 2015

Conversation

tarekgh
Copy link
Member

@tarekgh tarekgh commented Oct 24, 2015

The change here is just adding some default implmentation to be used for
Linux so we can avoid calling any path end up calling Win32 API.

The change also will make it easier in the future to determine what
functionality needed for Linux to implement the real PAL layer.

Note that, the changes here cover most of the globalization implemntation but
we may need to do more as needed if we run into any other problem when getting
the demo ready

@tarekgh
Copy link
Member Author

tarekgh commented Oct 24, 2015

@jkotas could you have a quick look before I merge this change please?

@jkotas
Copy link
Member

jkotas commented Oct 24, 2015

Could you please name this as "CultureInfo.InvariantOnly.cs", etc., so that we can keep it around even once we add the proper globalization support for Unix?

(Feel free to use better name for InvariantOnly if you can think about one.)

@@ -324,6 +331,10 @@ public static CultureInfo CurrentUICulture
{
get
{
#if CORERT
Copy link
Member

Choose a reason for hiding this comment

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

Could you please make sure that the Hello world still works on Windows with these changes? I suspect that we may want to use the dummy CultureInfo implementations even on CoreRT/Windows, for now.

@jkotas
Copy link
Member

jkotas commented Oct 24, 2015

LGTM otherwise. Could you please squash into single commit before merging?

The change here is just adding some default implmentation to be used for
Linux so we can avoid calling any path end up calling Win32 API.

The change also will make it easier in the future to determine what
functionality needed for Linux to implement the real PAL layer.

Note that, the changes here cover most of the globalization implemntation but
we may need to do more as needed if we run into any other problem when getting
the demo ready
tarekgh added a commit that referenced this pull request Oct 24, 2015
Add the default globalization implementation for Linux
@tarekgh tarekgh merged commit 300c946 into dotnet:master Oct 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants