aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorNicolas Pitre <npitre@baylibre.com>2025-04-09 21:13:55 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-04-11 16:55:54 +0200
commite88391f730e46d208b7fb37b02611d24137af1ef (patch)
tree873cad7808c4891a8d793e533663e887a0ad01cc /tools/perf/scripts/python/export-to-postgresql.py
parentvt: move unicode processing to a separate file (diff)
downloadlinux-e88391f730e46d208b7fb37b02611d24137af1ef.tar.gz
linux-e88391f730e46d208b7fb37b02611d24137af1ef.zip
vt: properly support zero-width Unicode code points
Zero-width Unicode code points are causing misalignment in vertically aligned content, disrupting the visual layout. Let's handle zero-width code points more intelligently. Double-width code points are stored in the screen grid followed by a white space code point to create the expected screen layout. When a double-width code point is followed by a zero-width code point in the console incoming bytestream (e.g., an emoji with a presentation selector) then we may replace the white space padding by that zero-width code point instead of dropping it. This maximize screen content information while preserving proper layout. If a zero-width code point is preceded by a single-width code point then the above trick is not possible and such zero-width code point must be dropped. VS16 (Variation Selector 16, U+FE0F) is special as it doubles the width of the preceding single-width code point. We handle that case by giving VS16 a width of 1 when that happens. Signed-off-by: Nicolas Pitre <npitre@baylibre.com> Link: https://lore.kernel.org/r/20250410011839.64418-4-nico@fluxnic.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions