diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-04-30 11:05:47 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-04-30 11:05:47 +0000 |
commit | ebd0145eafa5bf13d704f6f56898e3e864fb5848 (patch) | |
tree | 387f035b5cbc8c3b2b19bbf56acb353888d8bdab /amiga/clipboard.c | |
parent | 7fd6597468f70a652c413ab0d4bdc14871ed0cd1 (diff) | |
download | netsurf-ebd0145eafa5bf13d704f6f56898e3e864fb5848.tar.gz netsurf-ebd0145eafa5bf13d704f6f56898e3e864fb5848.tar.bz2 |
Convert _from_ UTF-8 and translate the converted string, not the original
svn path=/trunk/netsurf/; revision=12261
Diffstat (limited to 'amiga/clipboard.c')
-rwxr-xr-x | amiga/clipboard.c | 7 |
1 files 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); |