Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.c UTF8 cleanup | Brian Fraser | 2011-10-06 | 2 | -12/+137 |
| | |||||
* | More warnings tests. | Brian Fraser | 2011-10-06 | 4 | -0/+219 |
| | |||||
* | universal.c: VERSION UTF8 cleanup | Brian Fraser | 2011-10-06 | 1 | -27/+46 |
| | |||||
* | universal.c: Make croak_xs_usage account for UTF8 | Brian Fraser | 2011-10-06 | 1 | -6/+8 |
| | |||||
* | "Use of uninitialized value..." UTF8 cleanup | Brian Fraser | 2011-10-06 | 3 | -2/+17 |
| | |||||
* | gv.c: Make more warnings utf8-clean | Brian Fraser | 2011-10-06 | 1 | -24/+30 |
| | |||||
* | mro.(c|xs): Make warnings utf8-clean | Brian Fraser | 2011-10-06 | 3 | -15/+21 |
| | |||||
* | t/uni/gv.t, stringify is clean, remove the TODO | Brian Fraser | 2011-10-06 | 1 | -3/+2 |
| | |||||
* | Tests for DATA handle in UTF8 packages | Brian Fraser | 2011-10-06 | 1 | -1/+12 |
| | |||||
* | toke.c: Take utf8 into account when creating DATA handle | Father Chrysostomos | 2011-10-06 | 1 | -3/+13 |
| | | | | | This is based on work from Brian Fraser, but differs from his original in that it does not require an intermediate SV. | ||||
* | Tests for UTF-8 stashes. | Brian Fraser | 2011-10-06 | 2 | -0/+319 |
| | |||||
* | Tests for package; declarations in UTF-8 | Brian Fraser | 2011-10-06 | 2 | -0/+95 |
| | |||||
* | More tests for t/uni/method.t | Brian Fraser | 2011-10-06 | 1 | -1/+88 |
| | |||||
* | sv.c: Make most warnings utf8-clean | Brian Fraser | 2011-10-06 | 4 | -7/+83 |
| | |||||
* | sv.c: Make cloning account for UTF8 stash names | Brian Fraser | 2011-10-06 | 1 | -1/+2 |
| | |||||
* | Make sv.c:sv_clear account for UTF8 keys in PL_stashcache | Brian Fraser | 2011-10-06 | 1 | -1/+1 |
| | |||||
* | sv.c: Pass in UNI_DISPLAY_ISPRINT in S_not_a_number | Brian Fraser | 2011-10-06 | 2 | -7/+5 |
| | |||||
* | pp_sys.c: Make warnings utf8-clean | Brian Fraser | 2011-10-06 | 3 | -21/+170 |
| | |||||
* | pp_hot.c: Make warnings utf8-clean | Brian Fraser | 2011-10-06 | 3 | -6/+16 |
| | |||||
* | Teach porting/diag.t about SVf32 and SVf256 | Father Chrysostomos | 2011-10-06 | 1 | -1/+4 |
| | |||||
* | pp.c: Make warnings utf8-clean | Brian Fraser | 2011-10-06 | 2 | -3/+17 |
| | |||||
* | Make op.c warnings UTF8-clean | Brian Fraser | 2011-10-06 | 6 | -8/+233 |
| | |||||
* | Make gv.c and pp_ctl.c warnings utf8-clean | Brian Fraser | 2011-10-06 | 2 | -42/+56 |
| | |||||
* | doio.c: Make warnings UTF8- and nul-clean | Brian Fraser | 2011-10-06 | 2 | -8/+88 |
| | |||||
* | util.c for threads: stashpv_hvname_match UTF8 cleanup. | Brian Fraser | 2011-10-06 | 1 | -7/+16 |
| | |||||
* | Tests for DOES/isa/can with UTF8 and embedded nuls | Brian Fraser | 2011-10-06 | 3 | -1/+185 |
| | |||||
* | Document sv_does_pvn | Father Chrysostomos | 2011-10-06 | 1 | -2/+9 |
| | |||||
* | Correct name of sv_does_sv apidoc entry | Father Chrysostomos | 2011-10-06 | 1 | -3/+3 |
| | | | | plus other tweaks | ||||
* | universal.c: sv_does() UTF8 cleanup. | Brian Fraser | 2011-10-06 | 4 | -12/+85 |
| | | | | | This adds _sv, _pv, and _pvn forms to sv_does, and changes it to use sv_ref() instead of sv_reftype(). | ||||
* | mro.c: Correct utf8 and bytes concatenation | Father Chrysostomos | 2011-10-06 | 6 | -22/+114 |
| | | | | | | | | | | | | | | | | | | | The previous commit introduced some code that concatenates a pv on to an sv and then does SvUTF8_on on the sv if the pv was utf8. That can’t work if the sv was in Latin-1 (or single-byte) encoding and contained extra-ASCII characters. Nor can it work if bytes are appended to a utf8 sv. Both produce mangled utf8. There is apparently no function apart from sv_catsv that handle this. So I’ve modified sv_catpvn_flags to handle this if passed the SV_CATUTF8 (concatenating a utf8 pv) or SV_CATBYTES (cancatenating a byte pv) flag. This avoids the overhead of creating a new sv (in fact, sv_catsv even copies its rhs in some cases, so that would mean creating two new svs). It might even be worthwhile to redefine sv_catsv in terms of this.... | ||||
* | mro UTF8 cleanup. | Brian Fraser | 2011-10-06 | 43 | -46/+3533 |
| | | | | | | | | | | | This patch also duplicates existing mro tests with copies that use Unicode in identifiers, to test the mro code. Since those tests trigger it, it also fixes a bug in the parsing of *{...}: If the first character inside the braces is a non-ASCII Unicode identifier character, the inside is now implicitly quoted if it is just an identifier (just as it is with ASCII identifiers), instead of being parsed as a bareword that would violate strict subs. | ||||
* | universal.c: ->can UTF8 cleanup. | Brian Fraser | 2011-10-06 | 1 | -3/+1 |
| | |||||
* | universal.c: ->isa, sv_derived_from UTF8 cleanup. | Brian Fraser | 2011-10-06 | 4 | -16/+94 |
| | | | | | | | This makes them both nul-and-UTF8 clean, although the latter is somewhat superficial, as mro isn't clean yet. (Tests coming once ->can and ->DOES are clean) | ||||
* | pp_sys.c: pp_tie and untie UTF8 cleanup. | Brian Fraser | 2011-10-06 | 3 | -29/+36 |
| | |||||
* | pp.c: pp_substr for UTF-8 globs. | Brian Fraser | 2011-10-06 | 2 | -3/+17 |
| | | | | | Since typeglobs may have the UTF8 flag set now, we need to avoid testing SvCUR on a potential glob, as that would trip an assertion. | ||||
* | pp_ctl.c: pp_caller UTF8 cleanup. | Brian Fraser | 2011-10-06 | 3 | -7/+82 |
| | |||||
* | sv.c: S_anonymise_cv_maybe UTF8 cleanup. | Brian Fraser | 2011-10-06 | 1 | -5/+4 |
| | |||||
* | pp.c & sv.c: pp_ref UTF8 and null cleanup. | Brian Fraser | 2011-10-06 | 5 | -13/+36 |
| | | | | | | | | | This adds a new function to sv.c, sv_ref, which is a nul-and-UTF8 clean version of sv_reftype. pp_ref now uses that. sv_ref() not only returns the SV, but also takes in an SV to modify, so we can say both sv_ref(TARG, obj, TRUE); and sv = sv_ref(NULL, obj, TRUE); | ||||
* | Add a sv_sethek() function to sv.c | Brian Fraser | 2011-10-06 | 4 | -0/+50 |
| | | | | This is exported so that attributes.xs can use it. | ||||
* | pp.c: pp_bless UTF8 cleanup. | Brian Fraser | 2011-10-06 | 3 | -1/+129 |
| | | | | | Some tests in t/uni/bless.t are TODO, as ref() isn't clean yet. | ||||
* | op.c: Flag named methods if they are in UTF-8. | Brian Fraser | 2011-10-06 | 3 | -1/+42 |
| | |||||
* | pp_hot.c: method_common is UTF-8 aware. | Brian Fraser | 2011-10-06 | 3 | -10/+28 |
| | | | | | | | | | | Not really useful yet, since named methods aren't correctly flagged; that is to access a \x{30cb} method, you'd need to do something like Obj->${\"\x{30cb}"}. Committer’s note: I’m also including one piece of the ‘gv.c and pp_ctl.c warnings’ patch so that the newly-added tests in this commit pass. | ||||
* | gv.c: gv_fetchmethod_(flags|autoload) UTF8 cleanup. | Brian Fraser | 2011-10-06 | 2 | -12/+12 |
| | |||||
* | gv.c: S_gv_get_super_pkg UTF8 cleanup. | Brian Fraser | 2011-10-06 | 1 | -4/+7 |
| | |||||
* | gv.c: gv_fetchmeth_pvn_autoload UTF8 cleanup. | Brian Fraser | 2011-10-06 | 2 | -3/+36 |
| | | | | As with the previous commit, no Perl-level visible changes. | ||||
* | gv.c: gv_fetchmeth_pvn UTF8 cleanup. | Brian Fraser | 2011-10-06 | 2 | -5/+35 |
| | | | | | | | Since gv_fetchmeth_pvn is primarily used from within gv.c, and not much of anything is passing in the flag yet, this has no visible changes on the Perl level; So tests remain entirely in XS::APItest for the time being. | ||||
* | gv.c: gv_init_pvn now uses newCONSTSUB_flags. | Brian Fraser | 2011-10-06 | 1 | -1/+1 |
| | |||||
* | pp.c: Make pp_rv2cv use gv_autoload_pvn() | Brian Fraser | 2011-10-06 | 1 | -1/+1 |
| | |||||
* | pp_hot.c: pp_entersub UTF8 cleanup. | Brian Fraser | 2011-10-06 | 1 | -2/+2 |
| | |||||
* | pp_ctl.c: pp_goto UTF8 cleanup. | Brian Fraser | 2011-10-06 | 3 | -2/+45 |
| |