-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add lconv type, and locale support for UNIX #244
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
Conversation
We have lconv struct, setlocale(), and localeconv(). Constants live under notbsd for now.
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Lint caught a long line. This should fix the CI failure.
|
looks like I need to pull the |
|
musl doesn't define the additional locale categories, |
|
Yeah this all looks good to me once the CI is passing |
The BSDs seem to have more peculiarities than the notbsds
Linux-likes have more locale categories than the BSDs (except for musl). We define the common set of categories at the src/unix/notbsd/mod.rs level, and leave the rest to the platform-specific modules.
|
@alexcrichton I pushed the defs around, expanding the size of this addition quite a bit. I'm not sure if I should be concerned about the obvious duplication between some platforms. |
Add lconv type, and locale support for UNIX We have lconv struct, setlocale(), and localeconv(). Constants live under notbsd for now.
|
💔 Test failed - travis |
|
@bors: retry On Thu, Mar 31, 2016 at 10:09 AM, bors notifications@github.com wrote:
|
Add lconv type, and locale support for UNIX We have lconv struct, setlocale(), and localeconv(). Constants live under notbsd for now.
|
☀️ Test successful - status-appveyor, travis |
* sse2: __m64 related intrinsics _mm_add_si64 _mm_mul_su32 _mm_sub_si64 _mm_cvtpi32_pd _mm_set_epi64 _mm_set1_epi64 _mm_setr_epi64 * sse2: _mm_load_sd, _mm_loadh_pd, _mm_loadl_pd * sse2: _mm_store_sd, _mm_storeh_pd, _mm_storel_pd * sse2: _mm_shuffle_pd, _mm_move_sd * sse2: _mm_cast* _mm_castpd_ps _mm_castpd_si128 _mm_castps_pd _mm_castps_si128 _mm_castsi128_pd _mm_castsi128_ps * sse2: add some tests * Try to fix AppVeyor build * sse2: add more tests * sse2: fix assert_instr for _mm_shuffle_pd * Try to fix Travis build * sse2: try to fix AppVeyor build * sse2: try to fix AppVeyor build
We have lconv struct, setlocale(), and localeconv(). Constants live
under notbsd for now.