In perl.git, the branch smoke-me/khw-locale has been created

<http://perl5.git.perl.org/perl.git/commitdiff/79dfed89f56b429814565ea40dd8286c711fec88?hp=0000000000000000000000000000000000000000>

        at  79dfed89f56b429814565ea40dd8286c711fec88 (commit)

- Log -----------------------------------------------------------------
commit 79dfed89f56b429814565ea40dd8286c711fec88
Author: Karl Williamson <[email protected]>
Date:   Tue Oct 25 11:32:38 2016 -0600

    locale.c: Use meaningful initialization msg
    
    This string is initialized to keep it out of BSS.  It is supposed to be
    overwritten by the first call to it.  Use a message that informs the
    user if there is a bug and the overwriting doesn't work properly.  This
    commit is the result of some freebsd releases that don't properly
    implement strlcpy.

M       locale.c

commit 3d17feb92443d68838cf8464956932dd600797c9
Author: Karl Williamson <[email protected]>
Date:   Sun Oct 23 22:03:08 2016 -0600

    lib/locale.t: Skip testing known incompatible locales
    
    Some locales are incompatible with Perl.  The only multi-byte locale
    accepted, are UTF-8 ones, for example.  ISO 646 ones also can have
    things like a '|' be a \w, which will create havoc with regular
    expressions.  This commit causes locale.t to not test such locales, and
    to note which ones are skipped, and why.  Doing the tests can create
    segfaults.  For example locales with state can have their states screwed
    up by Perl, which knows nothing about that.  One could argue that the
    locale should be immune from bad state, and not segfault, but that is
    not under Perl's control, and we will get blamed initially, anyway, when
    a segfault happens.
    
    The multi-byte locales are more incompatible with Perl than the 7-bit
    locales that aren't ASCII compatible.  So it could be argued that those
    should be tested, but I don't want to undertake the work to separate out
    the two causes from each other.  The ISO 646 locales are essentially
    obsolete, and there would be little pay off for doing that work.

M       lib/locale.t

commit 3a3740f98f86841a638f52c86be660ef1cf97d3f
Author: Karl Williamson <[email protected]>
Date:   Sun Oct 23 22:02:13 2016 -0600

    lib/locale.t: Add skip(), fail() functions

M       lib/locale.t

commit a69b17d5494928504697bd3761edc776ac128573
Author: Karl Williamson <[email protected]>
Date:   Tue Oct 25 11:10:15 2016 -0600

    t/loc_tools.pl: Make find_locales accept string input
    
    Prior to this commit, in order to work properly, find_locales required
    the C enum number for a locale category.  This relaxes that to allow the
    name of the category as well.  Thus it will work seamlessly when a given
    category isn't on the platform.  Unless wrapped in an eval, or checked
    before using, it was a potential bug to call this function at all.  This
    is because it didn't properly handle a string, and trying to find the
    locale number might fail on a given platform.

M       lib/locale.t
M       t/loc_tools.pl
M       t/run/locale.t

commit 2b90e37f322f10732ed3c2d6b3b5cf1c44c17eff
Author: Karl Williamson <[email protected]>
Date:   Tue Oct 25 10:49:01 2016 -0600

    t/loc_tools.pl: Add 'use strict'

M       t/loc_tools.pl

commit 6f8e68894aa894b51e3171eb91e6c12ea508e01c
Author: Karl Williamson <[email protected]>
Date:   Mon Oct 24 17:45:45 2016 -0600

    t/loc_tools.pl: Move some code earlier in the file
    
    This is a simple move, with no changes.  This will make things flow more
    logically after a future commit.

M       t/loc_tools.pl

commit d3f8c1b9e9deda788c712bd2ab2eae9234d436bd
Author: Karl Williamson <[email protected]>
Date:   Sun Oct 23 21:27:33 2016 -0600

    t/loc_tools.pl: Complement sense of optional parameter
    
    Most often we want to only look at locales that are compatible with
    Perl.  Make that the default for the optional parameter.

M       ext/POSIX/t/wrappers.t
M       lib/locale_threads.t
M       t/loc_tools.pl
M       t/run/locale.t

commit 985a00c8ffcf2e93fbae3c39998e9276de507930
Author: Karl Williamson <[email protected]>
Date:   Sun Oct 23 21:18:20 2016 -0600

    t/loc_tools.pl: Fix not catching incompatible locales
    
    This is looking for a warning generated by the core when a setlocale is
    done to one that it deems incompatible with Perl.  However, the warning
    isn't generated unless locales are being used, as Perl mostly ignores
    locales, so even if the background one is incompatible, it doesn't
    matter.

M       t/loc_tools.pl

commit 35b17793c9e1a046fa785e2b926be7579f29769f
Author: Karl Williamson <[email protected]>
Date:   Sun Oct 23 10:50:09 2016 -0600

    locale.c: Output warning if debugging and 'no warnings'
    
    This message is helpful if -DL even if warnings are off

M       locale.c

commit c4620d1681ae0d50e0965c2a4a41e84af33b6215
Author: Karl Williamson <[email protected]>
Date:   Tue Oct 25 10:47:23 2016 -0600

    Add branch predictors for DEBUG statements
    
    It is unlikely that any given debug flag will be set in any given run,
    even under DEBUGGING builds.

M       perl.h

commit 47a51e97df83afaa03220417d9c0689eec90dbea
Author: Karl Williamson <[email protected]>
Date:   Tue Oct 25 10:46:42 2016 -0600

    perl.h: White-space only

M       perl.h

commit b041b551df489e3e4f6625b2056a8b867ae8183e
Author: Karl Williamson <[email protected]>
Date:   Sun Oct 23 22:12:12 2016 -0600

    pod/perllocale: Add caution about incompatible locales
    
    Some locales aren't compatible with Perl.  Note the potential bad
    consequences of using them.

M       pod/perllocale.pod

commit eaac51c205b8e9d15ccd9ccd74a077e6ee197f06
Author: Karl Williamson <[email protected]>
Date:   Sat May 28 21:47:30 2016 -0600

    Move bulk of POSIX::setlocale to locale.c
    
    This is the first step in making an XS callable setlocale() which
    is generalized to work with POSIX 2008 locale operations while retaining
    essentially the same API.

M       embed.fnc
M       ext/POSIX/POSIX.xs
M       locale.c
M       proto.h

commit 3b1695f7c53fbc6f4339d78a175bd13c6734447d
Author: Karl Williamson <[email protected]>
Date:   Thu Jul 21 22:05:56 2016 -0600

    p2008

M       locale.c

commit 3fbfd86f1ec1b1c692e92c46202e8ff975d15a20
Author: Karl Williamson <[email protected]>
Date:   Tue Aug 9 22:36:37 2016 -0600

    kid51 debug statements

M       locale.c

commit 5dc693ee7dde5559482efcc9308de5175143e2cc
Author: Karl Williamson <[email protected]>
Date:   Wed Aug 10 12:08:01 2016 -0600

    XXX wait until can write diag msg showing how to override: perl.c: Add 
error test for locale

M       perl.c
M       pod/perldiag.pod
-----------------------------------------------------------------------

--
Perl5 Master Repository

Reply via email to