Branch: refs/heads/smoke-me/bitwise_uni-gh848
Home: https://github.com/parrot/parrot
Commit: 6049613ff28fdc39c2279170d1ed855fb11917b2
https://github.com/parrot/parrot/commit/6049613ff28fdc39c2279170d1ed855fb11917b2
Author: Reini Urban <[email protected]>
Date: 2025-12-17 (Wed, 17 Dec 2025)
Changed paths:
M ChangeLog
M include/parrot/encoding.h
M src/string/api.c
M src/string/encoding.c
M t/codingstd/c_macro_args.t
M t/dynoplibs/bit.t
Log Message:
-----------
[pmc] Support unicode strings for bitwise ops
bands, bors, bxors and bnots understand now more multi-byte strings.
Closes GH #848
Old docs:
Performs a bitwise C<OR> on two Parrot strings, performing type and encoding
conversions if necessary. Returns the result as a new string.
Added now:
Same encodings are compared bitwise. Different two-byte encodings are first
converted down to latin1, and if that fails upgraded to ucs2 and if that
fails to ucs4.
2 byte <=> 4 byte conversion is not supported, thus e.g. utf8->utf16 fails.
But 2 byte to 1 byte is attempted.
To unsubscribe from these emails, change your notification settings at
https://github.com/parrot/parrot/settings/notifications
_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-commits