summaryrefslogtreecommitdiff
path: root/sv.c
Commit message (Collapse)AuthorAgeFilesLines
* Restore also the locale test to no-sprintf-taint state.Jarkko Hietaniemi2000-11-271-2/+2
| | | | | Fixes the bug 20001127.003. p4raw-id: //depot/perl@7888
* Retract #7863. It makes more sense not to taint formatted output,Jarkko Hietaniemi2000-11-271-4/+3
| | | | | not even by sprintf(). p4raw-id: //depot/perl@7875
* Re: [PATCH: perl@7825] SvTEMP-ness on rhs of aassign can wreak havocBenjamin Holzman2000-11-261-1/+2
| | | | | | | Message-ID: <20001126024234.G25040@ecnvantage.com> Patch for the bug 20000212.002. p4raw-id: //depot/perl@7867
* Fix locale inconsistencies unearthed by Hugo's work.Jarkko Hietaniemi2000-11-261-0/+4
| | | | | | | Now the floating point sprintf really does taint the result string as perllocale promises (has promised for a long time) if "use locale" is in the lexical scope. p4raw-id: //depot/perl@7863
* Re: pp_add -> pp_i_add efficiency hack?Nicholas Clark2000-11-261-0/+1
| | | | | | | Message-ID: <20001126000750.A22446@plum.flirble.org> Infinit. p4raw-id: //depot/perl@7862
* C<foreach my $x ...> in pseudo-fork()ed process may diddleGurusamy Sarathy2000-11-251-0/+8
| | | | | | | | | | parent's memory; fix it by keeping track of the actual pad offset rather than a raw pointer (this change is probably also relevant to non-ithreads case to avoid fallout from reallocs of the pad array, but is currently only enabled for the ithreads case in the interests of minimal disruption to existing "well tested" code) p4raw-id: //depot/perl@7858
* Fixes for signedness warnings noticed by VMSperlers.Jarkko Hietaniemi2000-11-221-2/+5
| | | p4raw-id: //depot/perl@7824
* [perl 7711: EPOC] updatesOlaf Flebbe2000-11-201-1/+1
| | | | | Message-ID: <25575.974658810@www23.gmx.net> p4raw-id: //depot/perl@7758
* Missing aTHX_Nick Ing-Simmons2000-11-191-1/+1
| | | p4raw-id: //depot/perlio@7750
* Introduce Perl_utf8_length(). Use it.Jarkko Hietaniemi2000-11-181-12/+6
| | | p4raw-id: //depot/perl@7744
* Lexical use open ... support:Nick Ing-Simmons2000-11-181-0/+2
| | | | | | | | | | | | add ->cop_io to COP structure in cop.h. Make mg.c and gv.c associate it with ${^OPEN}. Make lib/open.pm set it. Have sv.c, perl.c, pp_ctl.c, op.c manipulate it in a manner manner similar to ->cop_warnings. Have doio.c's do_open9 and pp_sys.c's pp_backticks use it as default and call new PerlIO_apply_layers(). Declare latter in perlio.h and define in perlio.c p4raw-id: //depot/perlio@7740
* Fix forAndrew Pimlott2000-11-051-5/+10
| | | | | | | | | | | | Subject: [ID 20001004.007] taint propogation is inconsistent Message-Id: <m13h1XU-000SEmC@nolfolan.idiomtech.com> The culprit was sv_setsv() which was rather blindly propagating taint, which lead to behaviour where if a tainted anon hash value was seen all the hash values from then on at that level became tainted, or at any upper levels in the case of nested anon hashes. p4raw-id: //depot/perl@7553
* Locale tweakery. Add test case for bug id 20000809.003 to op/misc,Jarkko Hietaniemi2000-11-041-9/+1
| | | | | | | create a "fast path" for locale name probing using "locale -a" if available, squash finally hopefully the s?printf resetting the numeric locale (since, IIUC perllocale, it never shouldn't). p4raw-id: //depot/perl@7540
* Fix for sv_2iv() on "shared" value from keys %hash.Nick Ing-Simmons2000-10-281-1/+4
| | | p4raw-id: //depot/perl@7464
* Continue the internal UTF-8 API tweaking.Jarkko Hietaniemi2000-10-251-2/+2
| | | | | | | | Rename utf8_to_uv_chk() back to utf8_to_uv() because it's used much more than the simpler API, now called utf8_to_uv_simple(). Still not quite happy with API, too much partial duplication of functionality. p4raw-id: //depot/perl@7439
* Make the UTF-8 decoding stricter and more verbose whenJarkko Hietaniemi2000-10-241-4/+4
| | | | | | | | | | | | malformation happens. This involved adding an argument to utf8_to_uv_chk(), which involved changing its prototype, and prefer STRLEN over I32 for the UTF-8 length, which as a domino effect necessitated changing the prototypes of scan_bin(), scan_oct(), scan_hex(), and reg_uni(). The stricter UTF-8 decoding checking uses Markus Kuhn's UTF-8 Decode Stress Tester from http://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt p4raw-id: //depot/perl@7416
* Support s?printf parameter reordering.Jarkko Hietaniemi2000-10-221-18/+49
| | | p4raw-id: //depot/perl@7402
* Re: Creating const subs for constants.John Tobey2000-10-211-11/+15
| | | | | Message-Id: <m13mo0N-000FObC@feynman.localnet> p4raw-id: //depot/perl@7389
* On output try to downgrade to bytes, croak if impossible,Jarkko Hietaniemi2000-10-171-2/+7
| | | | | | | from Simon Cozens. This means that outputting >255 UTF8 is impossible. Consider this as a strong incentive to get the I/O disciplines implemented. p4raw-id: //depot/perl@7355
* Make eq work again with utf8 (disabling the upgradingJarkko Hietaniemi2000-10-091-1/+1
| | | | | | | | should no more be necessary since the copies of the scalars are upgraded, not the scalars themselves). Takes care of ID 20001009.001. (The claimed length() bug in 20001009.001 seems bogus to me.) p4raw-id: //depot/perl@7182
* Fix in change 7162 was too-late for case where we "upgraded" to PVIV andNick Ing-Simmons2000-10-061-3/+4
| | | | | got a false +ve and so did not reach code which would have un-FAKEd the SV. p4raw-id: //depot/perl@7163
* Make sv_upgrade() undo READONLY|FAKE shared string hackery.Nick Ing-Simmons2000-10-061-0/+3
| | | | | | To fix (sort {$a <=> $b} keys %hash) in particular but should cover a number of other as-yet-unknown cases as well. p4raw-id: //depot/perl@7162
* Epoc updateOlaf Flebbe2000-10-031-1/+1
| | | | | Message-ID: <26423.969484586@www10.gmx.net> p4raw-id: //depot/perl@7124
* Fix some recursion in overload.pmDaniel Chetlin2000-09-301-5/+10
| | | | | Message-Id: <20000918050540.C652@ilmd> p4raw-id: //depot/perl@7104
* Re-instate Perl_utf8_to_uv without checking parameter - added in change 7075.Nick Ing-Simmons2000-09-301-2/+2
| | | | | | | i.e. rename Simon's function to Perl_utf8_to_uv_chk, change all calls to it to use new name and add Perl_utf8_to_uv() as a wrapper which calls it passing 0 to checking to get the warning. p4raw-id: //depot/perl@7096
* Multiplicity & ithreads fix for sv.c/Encode.xsSpider Boardman2000-09-151-1/+1
| | | | | | Subject: [ID 20000915.004] Not OK: perl v5.7.1 +devel-7094 on alpha-dec_osf-thread-multi 4.0f (UNINSTALLED) Message-Id: <200009151037.GAA07447@Orb.Nashua.NH.US> p4raw-id: //depot/perl@7095
* Botched the #7090 check-in.Jarkko Hietaniemi2000-09-151-1/+2
| | | p4raw-id: //depot/perl@7092
* Re: perl@7078 Spider Boardman2000-09-141-2/+2
| | | | | Message-Id: <200009142306.TAA20082@leggy.zk3.dec.com> p4raw-id: //depot/perl@7090
* We don't need to count the high bit bytes, a boolean is enough.Jarkko Hietaniemi2000-09-141-12/+9
| | | p4raw-id: //depot/perl@7086
* Replace #7084 withSpider Boardman2000-09-141-1/+2
| | | | | | Subject: Re: perl@7078 Message-Id: <200009142109.RAA03425@leggy.zk3.dec.com> p4raw-id: //depot/perl@7085
* Compilation warnings and an error.Jarkko Hietaniemi2000-09-141-3/+3
| | | p4raw-id: //depot/perl@7077
* Batch of UTF-8 patches from Simon Cozens.Jarkko Hietaniemi2000-09-141-77/+23
| | | p4raw-id: //depot/perl@7075
* Hash lookup of constant strings optimization:Nick Ing-Simmons2000-09-031-55/+101
| | | | | | | | | | Introduce SvREADONLY && SvFAKE to flag an SV which has SvPVX pointing to string table (as per sharepvn). Add newSV_pvn_share to create such a thing. Make hv.c compare addresses of strings and skip string compare if equal. Make method_named and helem ops use these shared-string SVs when arg is constant. Make keys op return shared-string SVs (less clearly a win). p4raw-id: //depot/perl@7016
* Forget about NV_MAX (#6951). Various floating point tweaks,Jarkko Hietaniemi2000-08-311-1/+2
| | | | | ideas from Eric Fifer, Yitzchak, Alan, and Spider. p4raw-id: //depot/perl@6953
* The #6929 was too skimpy.Jarkko Hietaniemi2000-08-311-1/+1
| | | p4raw-id: //depot/perl@6936
* Heap decorruption.Alan Burlison2000-08-301-2/+2
| | | | | | Subject: [PATCH] Fix for miniperl coredump on Solaris with -Duselongdouble Message-ID: <39AD7F28.A06533CF@uk.sun.com> p4raw-id: //depot/perl@6929
* [ID 20000608.006] panic: magic_killbackrefs with blessed global weakrefsHugo van der Sanden2000-08-291-3/+9
| | | | | Message-Id: <200006121836.TAA16977@crypt.compulink.co.uk> p4raw-id: //depot/perl@6901
* Fix for ID 20000828.001, long doubles were not formattedJarkko Hietaniemi2000-08-281-7/+13
| | | | | correctly (showed up in $], which stopped installing perl). p4raw-id: //depot/perl@6863
* newSVrv() memory leakJan Dubois2000-08-181-1/+16
| | | | | Message-ID: <l64ppsggaiuc4t6msm45iqohmhpjblb4qf@4ax.com> p4raw-id: //depot/perl@6687
* The #6648 wasn't protective enough for limited platformsJarkko Hietaniemi2000-08-171-0/+2
| | | | | (like microperl). p4raw-id: //depot/perl@6678
* Retract #6645.Jarkko Hietaniemi2000-08-171-30/+2
| | | p4raw-id: //depot/perl@6660
* The numeric locale was reset to "C" by s?printf and never restored.Christian Kirsch2000-08-161-6/+8
| | | | | | | | | | | | | Subject: [ID 20000809.003] setlocale(LC_NUMERIC...) produces different results in 5.005 and 5.6 Message-Id: <20000809170517.A25389@held> No test since adding the failing example to locale.t does not fail -- probably because the locale settings are so thoroughly tweaked by that time. Running the example standalone does fail, though. UPDATE: test case added at change #7540. p4raw-link: @7540 (not found) p4raw-id: //depot/perl@6648
* (Retracted by #6660)Dominic Dunlop2000-08-151-2/+30
| | | | | | Subject: [PATCH perl-current] make s?printf() produce two exponent digits where possible Message-Id: <p04320403b5bf4c32d381@[192.168.1.4]> p4raw-id: //depot/perl@6645
* Fixes to looking-like-number to keep behaviour as it was in 5.005_03.Mike Guy2000-08-111-13/+4
| | | | | | Subject: Re: [ID 20000810.002] $a["1foo"] same as $a[0] Message-Id: <E13Mtfa-0005Ge-00@libra.cus.cam.ac.uk> p4raw-id: //depot/perl@6583
* Revert the sv.c part of #6559, a better fix is needed.Jarkko Hietaniemi2000-08-101-2/+6
| | | p4raw-id: //depot/perl@6573
* (The fix did work but was not right, retracted in #6573)Christian Kirsch2000-08-091-6/+2
| | | | | | Subject: [ID 20000809.003] setlocale(LC_NUMERIC...) produces different results in 5.005 and 5.6 Message-Id: <20000809170517.A25389@held> p4raw-id: //depot/perl@6559
* Make bless(REF, REF) a fatal error, add bless tests.Hugo van der Sanden2000-08-071-1/+4
| | | | | | Subject: [PATCH bleadperl-6530] bless, REF, and bless(REF, REF) Message-Id: <200008071559.QAA29541@crypt.compulink.co.uk> p4raw-id: //depot/perl@6539
* Do not upgrade SVs into utf8 just because they participateSimon Cozens2000-07-291-56/+72
| | | | | | | | | | | | | in eq or cmp. Reported and fix suggested in Subject: [ID 20000720.009] sv_eq UTF8 bug Message-Id: <20000721043729.30081.qmail@othersideofthe.earth.li> Exercise for the kind reader: should we or should we not cache the utf8 conversion alongside the SV? (as magic, as the strxfrm()ed version is cached under use locale) Argue both for and against. p4raw-id: //depot/perl@6465
* Fix *foo{FORMAT}.Jarkko Hietaniemi2000-07-261-0/+7
| | | | | | | | | | | | | From: "H.Merijn Brand" <h.m.brand@hccnet.nl> Subject: Re: Looking for a starting point (Mark-Jason?, Chip?, Jarkko?) Date: Wed, 26 Jul 2000 19:51:02 +0200 Message-Id: <20000726194952.41DD.H.M.BRAND@hccnet.nl> From: Graham Barr <gbarr@pobox.com> Subject: Re: Looking for a starting point (Mark-Jason?, Chip?, Jarkko?) Date: Wed, 26 Jul 2000 17:38:36 +0100 Message-ID: <20000726173836.L472@pobox.com> p4raw-id: //depot/perl@6445
* More docs for sv functions.Jarkko Hietaniemi2000-07-151-1/+128
| | | | | | | | | | | | | | | | | | | | | | | Subject: [PATCH cfgperl] sv.c apidoc From: simon@brecon.co.uk (Simon Cozens) Date: 13 Jul 2000 09:00:20 GMT Message-ID: <slrn8mr194.2em.simon@justanother.perlhacker.org> Subject: Re: [PATCH cfgperl] sv.c apidoc From: "M.J.T. Guy" <mjtg@cus.cam.ac.uk> Date: Thu, 13 Jul 2000 12:27:41 +0100 Message-Id: <E13Ch9Z-0006QL-00@libra.cus.cam.ac.uk> Subject: Re: [PATCH cfgperl] sv.c apidoc From: "M.J.T. Guy" <mjtg@cus.cam.ac.uk> Date: Thu, 13 Jul 2000 13:23:09 +0100 Message-Id: <E13Ci1F-0007WR-00@libra.cus.cam.ac.uk> Subject: Re: [PATCH cfgperl] sv.c apidoc From: simon@brecon.co.uk (Simon Cozens) Date: 14 Jul 2000 06:51:02 GMT Message-ID: <slrn8mte2m.1qo.simon@justanother.perlhacker.org> p4raw-id: //depot/perl@6412