]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/uxucs.c
Major destabilisation, phase 1. In this phase I've moved (I think)
[PuTTY.git] / unix / uxucs.c
index b0b825c300308bf89222a8b42e4fdf259093fb00..78d196f19603e69c6b3ea4433958bd61a5d93d39 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <time.h>
 #include "putty.h"
+#include "terminal.h"
 #include "misc.h"
 
 /*
@@ -22,7 +23,7 @@ void luni_send(wchar_t * widebuf, int len, int interactive)
 {
     static char *linebuffer = 0;
     static int linesize = 0;
-    int ratio = (in_utf)?6:1;
+    int ratio = (in_utf(term))?6:1;
     int i;
     char *p;
 
@@ -32,7 +33,7 @@ void luni_send(wchar_t * widebuf, int len, int interactive)
        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];