[ 
https://issues.apache.org/jira/browse/GUACAMOLE-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16761084#comment-16761084
 ] 

Amarjeet Singh commented on GUACAMOLE-478:
------------------------------------------

If anyone else is having the same issue, Here are the changes which needs to be 
done to fix it.

File : guacamol-server/src/protocols/rdp/rdp_cliprdr.c

Function : guac_rdp_process_cb_data_request

const char* input = rdp_client->clipboard->buffer;
char* output = malloc(GUAC_RDP_CLIPBOARD_MAX_LENGTH);

parse through the above *rdp_client->clipboard->buffer* and replace \n with 
\r\n.
compile the code and It works fine.


> RDP clipboard uses incorrect newline characters
> -----------------------------------------------
>
>                 Key: GUACAMOLE-478
>                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-478
>             Project: Guacamole
>          Issue Type: Bug
>          Components: RDP
>            Reporter: Amarjeet Singh
>            Priority: Minor
>
> With the RDP protocol originating from Windows, the format of text clipboard 
> contents is assumed to use Windows-style newline characters (CR+LF). 
> Guacamole currently does not attempt to translate newline characters, sending 
> the format used within the received clipboard stream. This means that 
> applications running within RDP which only support Windows-style newlines, 
> such as Notepad, fail to handle received clipboard data.
> Applications which can handle both UNIX-style and Windows-style newline 
> characters are unaffected.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to