diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-05-11 00:54:59 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-05-11 00:54:59 +0200 |
commit | edca217bb99f7c32413c117239d12acdc223e811 (patch) | |
tree | c77aa8a8494ffe8784bf3b4e264579a50c2c4233 /sys/src/cmd/tcs/conv_gb.c | |
parent | 7388792a124756a528666cb5c375ee919db9ca11 (diff) |
tcs: handle surrogate pairs
Diffstat (limited to 'sys/src/cmd/tcs/conv_gb.c')
-rw-r--r-- | sys/src/cmd/tcs/conv_gb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/src/cmd/tcs/conv_gb.c b/sys/src/cmd/tcs/conv_gb.c index 626323ad9..81fcc0d45 100644 --- a/sys/src/cmd/tcs/conv_gb.c +++ b/sys/src/cmd/tcs/conv_gb.c @@ -60,7 +60,7 @@ gbproc(int c, Rune **r, long input_loc) } void -gb_in(int fd, long *notused, struct convert *out) +gb_in(int fd, long *, struct convert *out) { Rune ob[N]; Rune *r, *re; @@ -68,7 +68,6 @@ gb_in(int fd, long *notused, struct convert *out) int n, i; long nin; - USED(notused); r = ob; re = ob+N-3; nin = 0; @@ -92,14 +91,13 @@ gb_in(int fd, long *notused, struct convert *out) } void -gb_out(Rune *base, int n, long *notused) +gb_out(Rune *base, int n, long *) { char *p; int i; Rune r; static int first = 1; - USED(notused); if(first){ first = 0; for(i = 0; i < NRUNE; i++) |