~mdw
/
sgt
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Major destabilisation, phase 1. In this phase I've moved (I think)
[sgt/putty]
/
unicode.c
diff --git
a/unicode.c
b/unicode.c
index
f8cd3b5
..
182e244
100644
(file)
--- a/
unicode.c
+++ b/
unicode.c
@@
-8,6
+8,7
@@
#include <time.h>
#include "putty.h"
#include <time.h>
#include "putty.h"
+#include "terminal.h"
#include "misc.h"
/* Character conversion arrays; they are usually taken from windows,
#include "misc.h"
/* Character conversion arrays; they are usually taken from windows,
@@
-622,7
+623,7
@@
void luni_send(wchar_t * widebuf, int len, int interactive)
{
static char *linebuffer = 0;
static int linesize = 0;
{
static char *linebuffer = 0;
static int linesize = 0;
- int ratio = (in_utf)?3:1;
+ int ratio = (in_utf
(term)
)?3:1;
int i;
char *p;
int i;
char *p;
@@
-632,7
+633,7
@@
void luni_send(wchar_t * widebuf, int len, int interactive)
linesize = len * ratio * 2;
}
linesize = len * ratio * 2;
}
- if (in_utf) {
+ if (in_utf
(term)
) {
/* UTF is a simple algorithm */
for (p = linebuffer, i = 0; i < len; i++) {
wchar_t ch = widebuf[i];
/* UTF is a simple algorithm */
for (p = linebuffer, i = 0; i < len; i++) {
wchar_t ch = widebuf[i];