Allow U+F8FF to be typed

U+F8FF is the last character in the private use area, but it's also the
codepoint used for the Apple symbol (), which is typeable on US
keyboards in OS X, and so should actually work.
This commit is contained in:
Kevin Ballard 2014-09-21 21:02:41 -07:00
parent 94e535507c
commit b480c8ce79
6 changed files with 19 additions and 1 deletions

View file

@ -3002,10 +3002,13 @@ static int can_read(int fd)
/** /**
Test if the specified character is in the private use area that Test if the specified character is in the private use area that
fish uses to store internal characters fish uses to store internal characters
Note: Allow U+F8FF because that's the Apple symbol, which is in the
OS X US keyboard layout.
*/ */
static int wchar_private(wchar_t c) static int wchar_private(wchar_t c)
{ {
return ((c >= 0xe000) && (c <= 0xf8ff)); return ((c >= 0xe000) && (c < 0xf8ff));
} }
/** /**

13
tests/generic.expect Normal file
View file

@ -0,0 +1,13 @@
# vim: set filetype=expect:
#
# General tests that don't belong elsewhere
spawn $fish
expect_prompt
# ensure the Apple key () is typeable
send_line "echo "
expect_prompt "" {} unmatched {
puts stderr "Couldn't type apple key ()"
}

0
tests/generic.expect.err Normal file
View file

0
tests/generic.expect.out Normal file
View file

View file

@ -0,0 +1 @@
0

View file

@ -1,2 +1,3 @@
File bind.expect tested ok File bind.expect tested ok
File generic.expect tested ok
File read.expect tested ok File read.expect tested ok