Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUACAMOLE-1972: Fix writing UTF-8 strings with surrogate pairs #999

Open
wants to merge 1 commit into
base: patch
Choose a base branch
from

Conversation

scottp-dpaw
Copy link
Contributor

No description provided.

@necouchman
Copy link
Contributor

@scottp-dpaw Can you please re-base this against the patch branch of the Apache repository, instead of main?

@scottp-dpaw scottp-dpaw changed the base branch from main to patch July 30, 2024 03:17
@scottp-dpaw
Copy link
Contributor Author

Done, sorry about that!

@@ -885,7 +885,12 @@ Guacamole.Keyboard = function Keyboard(element) {
for (var i = 0; i < str.length; i++) {

// Determine keysym of current character
var codepoint = str.codePointAt ? str.codePointAt(i) : str.charCodeAt(i);
var codepoint = str.codePointAt(i);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should remove the checks for codePointAt - it was only added in mid-2017.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants