summaryrefslogtreecommitdiff
path: root/sv.c
Commit message (Collapse)AuthorAgeFilesLines
* UTF8 output prework.Nick Ing-Simmons2000-12-091-6/+4
| | | | | | - Store $\ and $, as SVs so they can have SvUTF8 flag - use do_print() rather than raw PerlIO_write() to print them. p4raw-id: //depot/perlio@8049
* Re: [PATCH] The largest hoax of all times?Ilya Zakharevich2000-12-051-7/+34
| | | | | | | | | | | | | | | | | | Date: Tue, 5 Dec 2000 00:40:25 -0500 Message-ID: <20001205004025.A4050@monk.mps.ohio-state.edu> Subject: Re: [PATCH] The largest hoax of all times? From: Ilya Zakharevich <ilya@math.ohio-state.edu> Date: Mon, 4 Dec 2000 23:55:53 -0500 Message-ID: <20001204235553.A1140@monk.mps.ohio-state.edu> Subject: Re: [PATCH] The largest hoax of all times? From: Ilya Zakharevich <ilya@math.ohio-state.edu> Date: Tue, 5 Dec 2000 01:28:45 -0500 Message-ID: <20001205012844.A4227@monk.mps.ohio-state.edu> Fix the unpredictable order of DESTROYs. p4raw-id: //depot/perl@7991
* Integrate perlio:Jarkko Hietaniemi2000-12-051-1/+1
|\ | | | | | | | | | | | | | | [ 7983] PERL_IMPLICIT_SYS (almost) works - something odd with "signal" p4raw-link: @7983 on //depot/perlio: 5f1a76d08cedee4f2888d077fe9593b03dd9bd13 p4raw-id: //depot/perl@7985
| * PERL_IMPLICIT_SYS (almost) works - something odd with "signal"Nick Ing-Simmons2000-12-041-1/+1
| | | | | | p4raw-id: //depot/perlio@7983
* | dTHR is a nop in 5.6.0 onwards. Ergo, it can go.Jarkko Hietaniemi2000-12-051-56/+4
| | | | | | p4raw-id: //depot/perl@7984
* | ++ 20% fasterNicholas Clark2000-12-041-3/+3
| | | | | | | | | | | | | | Message-ID: <20001204121726.B52976@plum.flirble.org> Make '$i = ""; $i++' to produce true IVs without a hint of NVs. p4raw-id: //depot/perl@7974
* | Make uv_to_utf8() to zero-terminate its output buffer,Jarkko Hietaniemi2000-12-031-1/+1
|/ | | | | always use (at least) UTF8_MAXLEN + 1 U8s deep buffer. p4raw-id: //depot/perl@7967
* Fix for 20001128.006, be more careful in Perl_sv_utf8_downgrade().Jarkko Hietaniemi2000-11-301-12/+16
| | | | | | | Why the different platforms behave so differently (core dump vs no core dump) on this bug is a but of a mystery, but if I had to guess I would mumble something like 'alignment'. p4raw-id: //depot/perl@7936
* Retract #7921, the patch shouldn't be needed.Jarkko Hietaniemi2000-11-291-1/+1
| | | p4raw-id: //depot/perl@7927
* (Retracted by #7927.)Simon Cozens2000-11-291-1/+1
| | | | | | Subject: [PATCH] Is infinity a number? Message-ID: <20001129144820.A31339@pembro33.pmb.ox.ac.uk> p4raw-id: //depot/perl@7921
* 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