Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/perl5Public

perl_langinfo.h: Fix to work on Android#22650

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
khwilliamson merged 2 commits intoPerl:bleadfromkhwilliamson:android
Oct 21, 2024

Conversation

khwilliamson
Copy link
Contributor

@khwilliamsonkhwilliamson commentedOct 9, 2024
edited
Loading

See GH#22627.

libc has a few locale categories that aren't used elsewhere, AFAIK. Android has a crippled implementation of them, in that it has none of the items that comprise the categories.

In a typical langinfo.h, these are enum fields, so their existence can't be checked with an #ifdef, but in Android, everything is a #define, so much be checked with #ifdef. To get around this without writing a Configure probe, this commit just creates defines when they are missing the category (which catches the non-Androids) or when using Android.


  • This set of changes does not require a perldelta entry.

@jkeenan
Copy link
Contributor

This p.r. is failing one test in the initial "sanity check" CI run: ../ext/I18N-Langinfo/t/Langinfo.t

# Failed test 92 - Returns expected value('ISO') for _NL_IDENTIFICATION_TERRITORY at t/locale.t line 237#      got ""# expected "ISO"../ext/XS-APItest/t/locale.t ......................................... Failed 1/106 subtests (less 5 skipped subtests: 100 okay)

Reproduced on a local build of this p.r. Also, as I noted in adifferent pull request, at the end of 'make test_prep' I'm getting a log of build-time warnings.

@khwilliamsonkhwilliamson changed the titleperl_langinfo.h: Resume some assumptionsperl_langinfo.h: Remove some assumptionsOct 10, 2024
See GHPerl#22627.Glibc has a few locale categories that aren't used elsewhere, AFAIK.Android has a crippled implementation of them, in that it has none ofthe items that comprise the categories.In a typical langinfo.h, these are enum fields, so their existence can'tbe checked with an #ifdef, but in Android, everything is a #define, somuch be checked with #ifdef.  To get around this without writing aConfigure probe, this commit just creates #defines when they are missingthe category (which catches the non-Androids) or when using Android.
@khwilliamsonkhwilliamson changed the titleperl_langinfo.h: Remove some assumptionsperl_langinfo.h: Fix to work on AndroidOct 11, 2024
@khwilliamsonkhwilliamson merged commit5957de4 intoPerl:bleadOct 21, 2024
@khwilliamsonkhwilliamson deleted the android branchOctober 21, 2024 21:17
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@khwilliamson@jkeenan

[8]ページ先頭

©2009-2025 Movatter.jp