Skip to content

Commit

Permalink
remove hardcoded workaround from unicode_width
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandwalker committed Jul 21, 2017
1 parent 32da8da commit 26206d1
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,15 +282,7 @@ unicode_width(unsigned long c, int tab_size)
{ 0x200B, 0x200F }, { 0x202A, 0x202E }, { 0x2060, 0x2063 },
{ 0x206A, 0x206F }, { 0x20D0, 0x20EF }, { 0x302A, 0x302F },
{ 0x3099, 0x309A }, { 0xA806, 0xA806 }, { 0xA80B, 0xA80B },
/*
* BUG: the last range in the next line should be { 0xFE00, 0xFE0F }
* inclusive of 0xFE0F ("VARIATION SELECTOR-16"), but that causes
* platform-specific failures in test/main/emoji-test :
* - test fails in Travis environment, both gcc/clang
* - test fails on Ubuntu 16.04 x86_64, gcc
* - test passes on OS X 10.11.6, both gcc/clang
*/
{ 0xA825, 0xA826 }, { 0xFB1E, 0xFB1E }, { 0xFE00, 0xFE0E },
{ 0xA825, 0xA826 }, { 0xFB1E, 0xFB1E }, { 0xFE00, 0xFE0F },
{ 0xFE20, 0xFE23 }, { 0xFEFF, 0xFEFF }, { 0xFFF9, 0xFFFB },
{ 0x10A01, 0x10A03 }, { 0x10A05, 0x10A06 }, { 0x10A0C, 0x10A0F },
{ 0x10A38, 0x10A3A }, { 0x10A3F, 0x10A3F }, { 0x1D167, 0x1D169 },
Expand Down

0 comments on commit 26206d1

Please sign in to comment.