From ebd0145eafa5bf13d704f6f56898e3e864fb5848 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 30 Apr 2011 11:05:47 +0000 Subject: Convert _from_ UTF-8 and translate the converted string, not the original svn path=/trunk/netsurf/; revision=12261 --- amiga/clipboard.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/amiga/clipboard.c b/amiga/clipboard.c index 848c90460..314692731 100755 --- a/amiga/clipboard.c +++ b/amiga/clipboard.c @@ -221,13 +221,13 @@ bool ami_add_to_clipboard(const char *text, size_t length, bool space) } else { - buffer = ami_to_utf8_easy(text); + buffer = ami_utf8_easy(text); if(buffer) { char *p; - p = text; + p = buffer; while(*p != '\0') { @@ -235,8 +235,9 @@ bool ami_add_to_clipboard(const char *text, size_t length, bool space) p++; } WriteChunkBytes(iffh, buffer, strlen(buffer)); + + ami_utf8_free(buffer); } - ami_utf8_free(buffer); } if(space) WriteChunkBytes(iffh," ",1); -- cgit v1.2.3