Sync from SUSE:SLFO:Main perl-Encode-Locale revision c337eb5e18f7b0c3590918e6b83298cc
This commit is contained in:
commit
1c4a0887fe
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
BIN
Encode-Locale-1.05.tar.gz
(Stored with Git LFS)
Normal file
BIN
Encode-Locale-1.05.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
23
cpanspec.yml
Normal file
23
cpanspec.yml
Normal file
@ -0,0 +1,23 @@
|
||||
---
|
||||
#description_paragraphs: 3
|
||||
#no_testing: broken upstream
|
||||
#sources:
|
||||
# - source1
|
||||
# - source2
|
||||
#patches:
|
||||
# foo.patch: -p1
|
||||
# bar.patch:
|
||||
#preamble: |-
|
||||
# BuildRequires: gcc-c++
|
||||
#post_prep: |-
|
||||
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
|
||||
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
|
||||
#post_install: |-
|
||||
# sed on %{name}.files
|
||||
#license: SUSE-NonFree
|
||||
#skip_noarch: 1
|
||||
#custom_build: |-
|
||||
#./Build build flags=%{?_smp_mflags} --myflag
|
||||
#custom_test: |-
|
||||
#startserver && make test
|
||||
#ignore_requires: Bizarre::Module
|
68
perl-Encode-Locale.changes
Normal file
68
perl-Encode-Locale.changes
Normal file
@ -0,0 +1,68 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 14 08:07:47 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 1.05
|
||||
see /usr/share/doc/packages/perl-Encode-Locale/Changes
|
||||
|
||||
## 2015-06-09 Release 1.05
|
||||
|
||||
Mats Peterson (1):
|
||||
Use GetACP() to get the ANSI code page like before
|
||||
|
||||
Thomas Sibley (1):
|
||||
Conditionalize the Win32::Console recommendation
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 14 19:49:35 UTC 2015 - coolo@suse.com
|
||||
|
||||
- updated to 1.04
|
||||
see /usr/share/doc/packages/perl-Encode-Locale/Changes
|
||||
|
||||
## 2015-01-12 Release 1.04
|
||||
|
||||
Ed J (5):
|
||||
|
||||
* Actually include all the tests in the MANIFEST
|
||||
* use Test::More and warnings
|
||||
* Tidy t/alias.t
|
||||
* t/arg.t TODO some actual ARGV testing
|
||||
* Use Win32::GetConsoleCP/GetConsoleOutputCP if available
|
||||
|
||||
Gisle Aas (3):
|
||||
|
||||
* Documentation spell fix
|
||||
* SEE ALSO Term::Encoding [RT#98138]
|
||||
|
||||
David Steinbrunner (1):
|
||||
|
||||
* typo fix
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 15 12:02:38 UTC 2012 - coolo@suse.com
|
||||
|
||||
- updated to 1.03
|
||||
Documentation spelling fixes and tweaks to improve testing on Windows.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 24 19:04:20 UTC 2011 - andrea.turrini@gmail.com
|
||||
|
||||
- Fixed typos in description of perl-encode-locale.spec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 31 09:36:31 UTC 2011 - coolo@novell.com
|
||||
|
||||
- update to 1.02
|
||||
Added supporting hacks for GB18030 and roman8. [RT#66373] [RT#67010]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 16 22:42:11 UTC 2011 - chris@computersalat.de
|
||||
|
||||
- fix deps, add
|
||||
o perl(Encode) >= 2, perl(Encode::Alias)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 14 10:50:06 UTC 2011 - vcizek@novell.com
|
||||
|
||||
- initial package 1.01
|
||||
* created by cpanspec 1.78.03
|
||||
|
156
perl-Encode-Locale.spec
Normal file
156
perl-Encode-Locale.spec
Normal file
@ -0,0 +1,156 @@
|
||||
#
|
||||
# spec file for package perl-Encode-Locale
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: perl-Encode-Locale
|
||||
Version: 1.05
|
||||
Release: 0
|
||||
%define cpan_name Encode-Locale
|
||||
Summary: Determine the locale encoding
|
||||
License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Encode-Locale/
|
||||
Source0: http://www.cpan.org/authors/id/G/GA/GAAS/%{cpan_name}-%{version}.tar.gz
|
||||
Source1: cpanspec.yml
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
BuildRequires: perl-macros
|
||||
%{perl_requires}
|
||||
|
||||
%description
|
||||
In many applications it's wise to let Perl use Unicode for the strings it
|
||||
processes. Most of the interfaces Perl has to the outside world are still
|
||||
byte based. Programs therefore need to decode byte strings that enter the
|
||||
program from the outside and encode them again on the way out.
|
||||
|
||||
The POSIX locale system is used to specify both the language conventions
|
||||
requested by the user and the preferred character set to consume and
|
||||
output. The 'Encode::Locale' module looks up the charset and encoding
|
||||
(called a CODESET in the locale jargon) and arranges for the the Encode
|
||||
manpage module to know this encoding under the name "locale". It means
|
||||
bytes obtained from the environment can be converted to Unicode strings by
|
||||
calling 'Encode::encode(locale => $bytes)' and converted back again with
|
||||
'Encode::decode(locale => $string)'.
|
||||
|
||||
Where file systems interfaces pass file names in and out of the program we
|
||||
also need care. The trend is for operating systems to use a fixed file
|
||||
encoding that don't actually depend on the locale; and this module
|
||||
determines the most appropriate encoding for file names. The the Encode
|
||||
manpage module will know this encoding under the name "locale_fs". For
|
||||
traditional Unix systems this will be an alias to the same encoding as
|
||||
"locale".
|
||||
|
||||
For programs running in a terminal window (called a "Console" on some
|
||||
systems) the "locale" encoding is usually a good choice for what to expect
|
||||
as input and output. Some systems allows us to query the encoding set for
|
||||
the terminal and 'Encode::Locale' will do that if available and make these
|
||||
encodings known under the 'Encode' aliases "console_in" and "console_out".
|
||||
For systems where we can't determine the terminal encoding these will be
|
||||
aliased as the same encoding as "locale". The advice is to use "console_in"
|
||||
for input known to come from the terminal and "console_out" for output to
|
||||
the terminal.
|
||||
|
||||
In addition to arranging for various Encode aliases the following functions
|
||||
and variables are provided:
|
||||
|
||||
* decode_argv( )
|
||||
|
||||
* decode_argv( Encode::FB_CROAK )
|
||||
|
||||
This will decode the command line arguments to perl (the '@ARGV' array)
|
||||
in-place.
|
||||
|
||||
The function will by default replace characters that can't be decoded by
|
||||
"\x{FFFD}", the Unicode replacement character.
|
||||
|
||||
Any argument provided is passed as CHECK to underlying Encode::decode()
|
||||
call. Pass the value 'Encode::FB_CROAK' to have the decoding croak if not
|
||||
all the command line arguments can be decoded. See the Encode/"Handling
|
||||
Malformed Data" manpage for details on other options for CHECK.
|
||||
|
||||
* env( $uni_key )
|
||||
|
||||
* env( $uni_key => $uni_value )
|
||||
|
||||
Interface to get/set environment variables. Returns the current value as
|
||||
a Unicode string. The $uni_key and $uni_value arguments are expected to
|
||||
be Unicode strings as well. Passing 'undef' as $uni_value deletes the
|
||||
environment variable named $uni_key.
|
||||
|
||||
The returned value will have the characters that can't be decoded
|
||||
replaced by "\x{FFFD}", the Unicode replacement character.
|
||||
|
||||
There is no interface to request alternative CHECK behavior as for
|
||||
decode_argv(). If you need that you need to call encode/decode yourself.
|
||||
For example:
|
||||
|
||||
my $key = Encode::encode(locale => $uni_key, Encode::FB_CROAK);
|
||||
my $uni_value = Encode::decode(locale => $ENV{$key}, Encode::FB_CROAK);
|
||||
|
||||
* reinit( )
|
||||
|
||||
* reinit( $encoding )
|
||||
|
||||
Reinitialize the encodings from the locale. You want to call this
|
||||
function if you changed anything in the environment that might influence
|
||||
the locale.
|
||||
|
||||
This function will croak if the determined encoding isn't recognized by
|
||||
the Encode module.
|
||||
|
||||
With argument force $ENCODING_... variables to set to the given value.
|
||||
|
||||
* $ENCODING_LOCALE
|
||||
|
||||
The encoding name determined to be suitable for the current locale. the
|
||||
Encode manpage know this encoding as "locale".
|
||||
|
||||
* $ENCODING_LOCALE_FS
|
||||
|
||||
The encoding name determined to be suitable for file system interfaces
|
||||
involving file names. the Encode manpage know this encoding as
|
||||
"locale_fs".
|
||||
|
||||
* $ENCODING_CONSOLE_IN
|
||||
|
||||
* $ENCODING_CONSOLE_OUT
|
||||
|
||||
The encodings to be used for reading and writing output to the a console.
|
||||
the Encode manpage know these encodings as "console_in" and
|
||||
"console_out".
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
%{__make} %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
%{__make} test
|
||||
|
||||
%install
|
||||
%perl_make_install
|
||||
%perl_process_packlist
|
||||
%perl_gen_filelist
|
||||
|
||||
%files -f %{name}.files
|
||||
%defattr(-,root,root,755)
|
||||
%doc Changes README
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user