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 #1665: posixlib localtime() now ensures tzset() has been called. #2269

Conversation

LeeTibbert
Copy link
Contributor

@LeeTibbert LeeTibbert commented Apr 24, 2021

Change the implementation of posixlib localtime() to complies with the
relevant Posix specification.

Scala Native posixlib localtime() now calls C localtime(), not localtime_r().
C localtime() is required to act as though tzset() had been called, the
previously used localtime_r() does not have that requirement.

…een called.

Change the implementation of posixlib localtime() to complies with the
relevant Posix specification.

Scala Native posixlib localtime() now calls C localtime(), not localtime_r().
The localtime() is required to act as though tzset() had been called,
localtime_r() does not have that requirement.
@WojciechMazur WojciechMazur merged commit fcd6de2 into scala-native:master May 3, 2021
ekrich pushed a commit to ekrich/scala-native that referenced this pull request May 21, 2021
…een called. (scala-native#2269)

Change the implementation of posixlib localtime() to complies with the
relevant Posix specification.

Scala Native posixlib localtime() now calls C localtime(), not localtime_r().
The localtime() is required to act as though tzset() had been called,
localtime_r() does not have that requirement.
WojciechMazur pushed a commit to WojciechMazur/scala-native that referenced this pull request Aug 25, 2021
…een called. (scala-native#2269)

Change the implementation of posixlib localtime() to complies with the
relevant Posix specification.

Scala Native posixlib localtime() now calls C localtime(), not localtime_r().
The localtime() is required to act as though tzset() had been called,
localtime_r() does not have that requirement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants