Граф коммитов

10 Коммитов

Автор SHA1 Сообщение Дата
Simon Tatham 947fa8f0ae Fix another type mismatch introduced by r9409.
[originally from svn r9427]
[r9409 == 053d2ba6d1]
2012-03-05 18:40:36 +00:00
Simon Tatham 46bd2b0721 Update to 2007-05-26 version of upstream wcwidth.c.
[originally from svn r9413]
2012-02-19 10:32:44 +00:00
Simon Tatham 053d2ba6d1 Patch from Yoshida Masato to fill in the missing pieces of Windows
UTF-16 support. High Unicode characters in the terminal are now
converted back into surrogates during copy and draw operations, and
the Windows drawing code takes account of that when splitting up the
UTF-16 string for display. Meanwhile, accidental uses of wchar_t have
been replaced with 32-bit integers in parts of the cross-platform code
which were expecting not to have to deal with UTF-16.

[originally from svn r9409]
2012-02-17 19:28:55 +00:00
Jacob Nevins 9049f43955 `wcwidth-upgrade': upgrade to latest wcwidth.c from Markus Kuhn
<http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c>.
This is identified both internally and in HTTP headers as 2003-05-20,
for Unicode 4.0.

Only changes from upstream are to make mk_wcwidth_cjk() non-static and to
#include "putty.h" for prototypes.

The status of some code points has changed; see the wishlist item. We've
had some feedback from the CJK and Arabic communities that upgrading is
probably the right thing to do.

[originally from svn r5547]
[this svn revision also touched putty-wishlist]
2005-03-23 20:04:08 +00:00
Jacob Nevins faf59c78be Add an option to use wcwidth_cjk() instead of wcwidth(), as several people
have asked for it.

[originally from svn r5542]
2005-03-22 23:20:23 +00:00
Ben Harris 873b95deff Put prototypes for the functions exported by wcwidth.c in putty.h, and remove
one from terminal.c.  Have wcwidth.c include putty.h to get its prototypes.

[originally from svn r2377]
2002-12-29 15:08:27 +00:00
Ben Harris f81cd2a3c6 Use <stddef.h> to get wchar_t, rather than <wchar.h> (or nothing, in putty.h).
Both are required to contain wchar_t in C99, but only <stddef.h> does in the
version of MPW I've got here.

[originally from svn r2206]
2002-11-10 00:03:55 +00:00
Simon Tatham ea788e29c7 RDB also points out we don't need the CJK `not recommended for
general use' wcwidth function, so we condition it out to save space.

[originally from svn r1248]
2001-09-07 23:00:37 +00:00
Simon Tatham 8692657fdd Patch from RDB: Markus Kuhn has issued an updated version of his
wcwidth function.

[originally from svn r1247]
2001-09-07 22:59:07 +00:00
Simon Tatham 26f1085038 RDB's Unicode patch. Fonts are now used in Unicode mode where
possible and we have a single unified means of trying to display any
Unicode code point. Instead of the various ad-hoc translation modes
we had before, we now have a single `codepage' option which allows
us to treat the incoming (and outgoing) text as any given character
set, and locally we map that to Unicode and back.

[originally from svn r1110]
2001-05-10 08:34:20 +00:00