summaryrefslogtreecommitdiff
path: root/hadrian/hie-bios.bat
diff options
context:
space:
mode:
authorMatthew Pickering <matthewtpickering@gmail.com>2021-06-11 10:48:25 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-06-23 02:58:35 -0400
commit7f6454fb8cd92b2b2ad4e88fa6d81e34d43edb9a (patch)
tree22dbe8c64e1761856913450fa297e2797c905fa2 /hadrian/hie-bios.bat
parent87f57ecf2523e83d8dd9cad919a6f2010f630ad0 (diff)
downloadhaskell-7f6454fb8cd92b2b2ad4e88fa6d81e34d43edb9a.tar.gz
Optimiser: Correctly deal with strings starting with unicode characters in exprConApp_maybe
For example: "\0" is encoded to "C0 80", then the rule would correct use a decoding function to work out the first character was "C0 80" but then just used BS.tail so the rest of the string was "80". This resulted in "\0" being transformed into '\C0\80' : unpackCStringUTF8# "80" Which is obviously bogus. I rewrote the function to call utf8UnconsByteString directly and avoid the roundtrip through Faststring so now the head/tail is computed by the same call. Fixes #19976
Diffstat (limited to 'hadrian/hie-bios.bat')
0 files changed, 0 insertions, 0 deletions