summaryrefslogtreecommitdiff
path: root/t/io/bom.t
Commit message (Collapse)AuthorAgeFilesLines
* Change pack U behavior for EBCDICKarl Williamson2021-12-281-2/+1
| | | | | | | | | | This effectively reverts 3ece276e6c0. It turns out this was a bad idea to make U mean the non-native official Unicode code points. It may seem to make sense to do so, but broke multiple CPAN modules which were using U the previous way. This commit has no effect on ASCII-platform functioning.
* Use set_up_inc for several unit testsNicolas R2016-08-181-3/+3
| | | | | | | | | | | | | | | Use set_up_inc when require.pl is loaded move plan outside of BEGIN block when no tests are run at BEGIN time. Using set_up_inc allow to run these tests under minitest but also compile them using B::C. This also has the advantage to use a single control point for @INC setup. Note: some tests cannot use 'require test.pl', unshfit is then used for them.
* t/io/bom.t: Generalize for non-ASCII platformsKarl Williamson2015-02-171-3/+5
| | | | | | This commit was updated on February 17, 2015 before being pushed to blead to incorporate work from Hugo van der Sanden and Dagfinn Ilmari Mannsåker
* fix assertions for UTF8_TWO_BYTE_HI/LOHugo van der Sanden2015-02-121-1/+12
| | | | | | Replace the stricter MAX_PORTABLE_UTF8_TWO_BYTE check with a looser MAX_UTF8_TWO_BYTE check, else we can't correctly convert codepoints in the range 0x400-0x7ff from utf16 to utf8 on non-ebcdic platforms.
* [perl #88420] BOM support on Windows broken in 5.13.11Jan Dubois2011-04-131-0/+14
When Perl reads the script in text mode, then the tell() position on the script handle may include stripped carriage return characters. Therefore the file position after reading the first line of the script may be one larger than the length of the input buffer.