Mercurial > vim
view src/libvterm/find-wide-chars.pl @ 21580:93dae47699fb v8.2.1340
patch 8.2.1340: some tests fail on Cirrus CI and/or with FreeBSD
Commit: https://github.com/vim/vim/commit/b86abadf87bd0f85f800077171ec4b98aefff776
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 1 16:08:19 2020 +0200
patch 8.2.1340: some tests fail on Cirrus CI and/or with FreeBSD
Problem: Some tests fail on Cirrus CI and/or with FreeBSD.
Solution: Make 'backupskip' empty. Do not run tests as root. Check for
directory when using viminfo. (Ozaki Kiichi, closes #6596)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 01 Aug 2020 16:15:04 +0200 |
parents | 55a373a243c0 |
children |
line wrap: on
line source
#!/usr/bin/perl use strict; use warnings; STDOUT->autoflush(1); sub iswide { my ( $cp ) = @_; return chr($cp) =~ m/\p{East_Asian_Width=Wide}|\p{East_Asian_Width=Fullwidth}/; } my ( $start, $end ); foreach my $cp ( 0 .. 0x1FFFF ) { iswide($cp) or next; if( defined $end and $end == $cp-1 ) { # extend the range $end = $cp; next; } # start a new range printf " { %#04x, %#04x },\n", $start, $end if defined $start; $start = $end = $cp; } printf " { %#04x, %#04x },\n", $start, $end if defined $start;