Pk11 149f0b2496 Use macro for UTF-8 byte count
Makes it more clear why all of the buffers are being multiplied by 4

Fix UTF-8 bytesize macro

Before UTF_BUFFER_BYTESIZE(str_width - 10)] would multiply the 10, not the whole number, by UTF_MAX_BYTES_PER_RUNE

Do (rune_count + 1) * 4 in UTF-8 bytesize macro

Fix Resize/Truncate String snprintf size

Before it would break if the last character was multi-byte
2021-08-31 13:40:54 +02:00
..
2019-06-03 02:28:25 +02:00
2020-03-28 07:05:42 -03:00
2019-04-16 00:41:31 +02:00
2020-08-26 23:01:58 +02:00
2020-03-28 07:05:42 -03:00
2019-06-03 02:28:26 +02:00
2018-07-30 01:03:15 +02:00
2021-08-31 13:40:54 +02:00
2021-08-31 13:40:54 +02:00
2020-08-26 23:01:58 +02:00
2017-11-17 19:37:45 +01:00
2020-08-26 23:01:58 +02:00
2021-08-31 13:40:54 +02:00
2021-08-31 13:40:54 +02:00
2019-09-29 19:53:28 +02:00
2020-08-26 23:01:58 +02:00
2018-03-16 03:00:26 +01:00