mirror of
https://github.com/wader/fq.git
synced 2024-12-27 15:42:07 +03:00
b0e4da28de
to_hex and to_base64 functions were expecting `string` as an input type, which caused the value to be CastFn'ed to string, which in turn resulted in raw bytes being cast to []rune (in makeDecodeValueOut). This operation replaces invalid UTF-8 bytes with 0xFFFD, which then were passed on to the hex/base64 encoders, resulting in incorrect output. This patch fixes it by expecting `any` as an input type, which allows the function to correctly read raw bytes of the input data. |
||
---|---|---|
.. | ||
testdata | ||
encoding.go | ||
encoding.jq | ||
url.go |