1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +02:00
Files
weechat/tests
Sébastien Helleu 3045021430 core: fix cut of chars in "cutscr" of evaluated strings
This fixes two problems:
- stop before max char displayed with wide chars
- preserve combining chars in the output

Before the fix (wrong):

>> ${cutscr:3,+,こんにちは世界}
== [こん+]
>> ${cutscr:1,+,a${\u0308}}
== [a+]

After the fix (OK):

>> ${cutscr:3,+,こんにちは世界}
== [こ+]
>> ${cutscr:1,+,a${\u0308}}
== [ä]
2017-03-28 20:45:31 +02:00
..
2017-01-01 11:32:04 +01:00
2017-01-01 11:32:04 +01:00
2017-01-01 11:32:04 +01:00