aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-05-01 17:56:35 +0000
committerrsc <devnull@localhost>2005-05-01 17:56:35 +0000
commit040b6da0284087287408f600d988604df9ebfd03 (patch)
tree1f5935708853c2047a00f10f3e09e8e141e6239f /src
parent8acaca696eb6a6efbe3c314ac5a6f6f73dbebc73 (diff)
downloadplan9port-040b6da0284087287408f600d988604df9ebfd03.tar.gz
plan9port-040b6da0284087287408f600d988604df9ebfd03.tar.bz2
plan9port-040b6da0284087287408f600d988604df9ebfd03.zip
Allow unicode in identifiers.
Diffstat (limited to 'src')
-rw-r--r--src/cmd/9term/9term.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c
index 34c155cf..a620410a 100644
--- a/src/cmd/9term/9term.c
+++ b/src/cmd/9term/9term.c
@@ -307,9 +307,7 @@ threadmain(int argc, char *argv[])
int
isexpand(Rune r)
{
- return r=='_' || ('0' <= r && r <= '9')
- || ('a' <= r && r <= 'z')
- || ('A' <= r && r <= 'Z');
+ return r=='_' || ('0' <= r && r <= '9') || isalpharune(r);
}
void