mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 07:19:37 +03:00
Convert _from_ UTF-8 and translate the converted string, not the original
svn path=/trunk/netsurf/; revision=12261
This commit is contained in:
parent
7fd6597468
commit
ebd0145eaf
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user