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

Amarjeet Singh edited comment on GUACAMOLE-478 at 1/12/18 2:11 PM:
-------------------------------------------------------------------

I went through the above link and found the following :-
 Microsoft Windows support  Abbreviation -  *CR LF*     Escape sequence -  
*\r\n*  dec value - 13 10
whereas 
Unix and Unix-like systems  support   Abbreviation -  *LF*      Escape sequence 
-  *\n*  dec value -  10.

I debugged the JavaScript code of Guacamole where I found that when it encodes 
the clipboard data,  it uses charCodeAt() function of JavaScript which gets 
*dec value of 10* and send Unix -like systems Abbreviation to Gucamole-Server. 

[~mike.jumper] when you said  
{quotes} I can confirm through testing that replacing all UNIX-style newlines 
within the clipboard with Windows-style newlines solves the problem with 
respect to the affected applications (Notepad),  {quotes} 
Where did you replaced it  within the clipboard?


was (Author: amarjeetxc):
I went through the above link and found the following :-
 Microsoft Windows support  Abbreviation -  *CR LF*     Escape sequence -  
*\r\n*  dec value - 13 10
whereas 
Unix and Unix-like systems  support   Abbreviation -  *LF*      Escape sequence 
-  *\n*  dec value -  10.

I debugged the JavaScript code of Guacamole where I found that when it encodes 
the clipboard data,  it uses charCodeAt() function of JavaScript which gets 
*dec value of 10* and send Unix -like systems Abbreviation to Gucamole-Server. 

[~mike.jumper] when you said  ~quotes~ I can confirm through testing that 
replacing all UNIX-style newlines within the clipboard with Windows-style 
newlines solves the problem with respect to the affected applications 
(Notepad),  ~quotes~  Where did you replaced it  within the clipboard?

> 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
(v6.4.14#64029)

Reply via email to