stdlib: on Linux, create a non-NULL locale for strto*_l functions

Unlike Darwin, GNU libc does not provide a shortcut to access the C
locale by using a NULL locale_t.

Swift SVN r25847
This commit is contained in:
Dmitri Hrybenko
2015-03-08 04:06:43 +00:00
parent 4de6fa990d
commit 652eb8f948
2 changed files with 23 additions and 6 deletions

View File

@@ -14,8 +14,6 @@
// RUN: %S/../../utils/gyb -DCMAKE_SIZEOF_VOID_P=%target-ptrsize %s -o %t/NumericParsing.swift
// RUN: %S/../../utils/line-directive %t/NumericParsing.swift -- %target-build-swift %t/NumericParsing.swift -o %t/a.out
// RUN: %S/../../utils/line-directive %t/NumericParsing.swift -- %target-run %t/a.out
//
// XFAIL: linux
%{
from SwiftIntTypes import *
@@ -47,7 +45,6 @@ number_of_values = 23
}%
import StdlibUnittest
import Darwin
var tests = TestSuite("NumericParsing")