summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
Diffstat (limited to 'amiga')
-rwxr-xr-xamiga/clipboard.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/amiga/clipboard.c b/amiga/clipboard.c
index bf0b6f618..848c90460 100755
--- a/amiga/clipboard.c
+++ b/amiga/clipboard.c
@@ -221,8 +221,21 @@ bool ami_add_to_clipboard(const char *text, size_t length, bool space)
}
else
{
- utf8_to_local_encoding(text,length,&buffer);
- if(buffer) WriteChunkBytes(iffh,buffer,strlen(buffer));
+ buffer = ami_to_utf8_easy(text);
+
+ if(buffer)
+ {
+ char *p;
+
+ p = text;
+
+ while(*p != '\0')
+ {
+ if(*p == 0xa0) *p = 0x20;
+ p++;
+ }
+ WriteChunkBytes(iffh, buffer, strlen(buffer));
+ }
ami_utf8_free(buffer);
}