Commit graph

18 commits

Author SHA1 Message Date
Michael Teichgräber
c006e98419 This patch fixes unicode, unicode-be and unicode-le
input, and unicode output, which have been broken due
to the change of the size of Rune from two bytes to
four bytes.

(Unicode-le and unicode-be output have not been
affected, since they work different, and produce
correct output as long as sizeof(Rune) >= 2.)

In all of the affected functions an extra array of N
elements of type u16int is used to temporarily store
the 16-bit unicode data.  As this increases stack
usage, perhaps a different, slightly more complicated
solution might be preferred, where only a single
`Rune buf[N]' is used for both temporary storage and
the result.

R=rsc
CC=codebot
http://codereview.appspot.com/1574041
2010-06-28 14:43:28 -07:00
Anthony Martin
25989d9eca tcs: macroman charset fixes
2126 -> 03a9 # greek capital letter omega
2012 -> 201c # left double quotation mark
00a4 -> 20ac # euro sign
f7ff -> f8ff # apple logo

R=rsc
CC=codebot
http://codereview.appspot.com/1233043
2010-06-28 14:37:40 -07:00
Russ Cox
a0583cf256 tcs: update for 32-bit Rune
http://codereview.appspot.com/117063
2009-09-13 17:43:37 -04:00
rsc
2b03bf696c avoid hang with htmlroff (Michael Teichgräber) 2006-10-12 02:43:52 +00:00
rsc
a727811a2c avoid nonstandard entity names (Michael Teichgräber) 2006-10-12 02:37:40 +00:00
rsc
8d7133308d forgot 2006-05-21 20:42:33 +00:00
rsc
536f9b83c0 import from plan9 2006-05-21 18:57:51 +00:00
rsc
cbeb0b26e4 Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
rsc
1a8bd157b6 better labels 2006-02-14 19:44:18 +00:00
rsc
90557256d3 Add more character sets. 2006-01-19 01:32:19 +00:00
rsc
30d57c7489 oops 2005-12-27 23:16:48 +00:00
rsc
35d26aa321 add EILSEQ for mac 2005-12-26 04:47:21 +00:00
rsc
fa059a4e3f better errno declarations 2005-12-17 13:00:00 +00:00
rsc
7f0d675d58 Fix UTF bug reported on 9fans. 2005-09-13 00:23:53 +00:00
rsc
b5932d3d2a silence gcc 2005-03-18 21:51:52 +00:00
rsc
7551b2ec8b use plan 9 versions 2005-03-09 17:12:40 +00:00
rsc
372e9667df Goodbye SHORTLIB 2005-01-04 22:10:29 +00:00
wkj
a31db67d14 Add tcs; it compiles in my world, but I haven't tried it in Russ's yet. 2004-04-21 01:15:41 +00:00