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
CODESET doesn't behave as documented #17064
Comments
From choroba@matfyz.czCreated by choroba@matfyz.czThe documentation of CODESET in I18N::Langinfo says: "CODESET" But, when running in Linux, it clearly returns something: $ perl -MI18N::Langinfo=langinfo,CODESET -E 'say langinfo(CODESET)' Reading the source code shows the function calls nl_langinfo if it Perl Info
|
From @jkeenanOn Fri, 28 Jun 2019 13:10:02 GMT, choroba@matfyz.cz wrote:
Indeed, I get a non-empty return value on Linux as far back as 5.10.1. Karl, this documentation was added in commit 8d72e74. Can you take a look? Thank you very much. -- |
The RT System itself - Status changed from 'new' to 'open' |
From choroba@matfyz.cz
Oh, I just noticed I might have misread the documentation. In fact, several Starting in Perl 5.28, this module is available even on systems that So, the whole list is irrelevant to Linux. What confused me was the Ch. |
From @jkeenanOn Thu, 04 Jul 2019 14:15:53 GMT, choroba@matfyz.cz wrote:
We'll get some feedback from the original committer and figure out what to do from there. It may be as simple as reformatting. -- |
From @khwilliamsonOn 7/4/19 8:22 AM, James E Keenan via RT wrote:
Attached is a patch to add a heading. Revisions welcome |
From @khwilliamson0005-Add-heading.patchFrom 5eea237de8b83c26a500b975841f2fb1e943d791 Mon Sep 17 00:00:00 2001
From: Karl Williamson <khw@cpan.org>
Date: Thu, 4 Jul 2019 11:49:14 -0600
Subject: [PATCH 5/5] Add heading
---
ext/I18N-Langinfo/Langinfo.pm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ext/I18N-Langinfo/Langinfo.pm b/ext/I18N-Langinfo/Langinfo.pm
index a0fc52a9f3..6fee6752c8 100644
--- a/ext/I18N-Langinfo/Langinfo.pm
+++ b/ext/I18N-Langinfo/Langinfo.pm
@@ -180,6 +180,8 @@ For the eras based on typically some ruler, such as the Japanese Emperor
=back
+=head2 For systems without C<nl_langinfo>
+
Starting in Perl 5.28, this module is available even on systems that lack a
native C<nl_langinfo>. On such systems, it uses various methods to construct
what that function, if present, would return. But there are potential
--
2.17.1
|
From @khwilliamsonSince there was no further discussion, I've applied the patch as |
@khwilliamson - Status changed from 'open' to 'pending release' |
Migrated from rt.perl.org#134234 (status was 'pending release')
Searchable as RT134234$
The text was updated successfully, but these errors were encountered: