-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
clipboard
with an image errors (windows)
#47913
Comments
I guess the question is what should this do? |
In Windows 11, English, the error I see is, for the record, I'd probably expect an empty string in these situations. This is what happens if I copy and image, and try to paste it in Notepad, for example, which only supports textual content. |
I think returning an empty string makes sense, and it is also consistent with the 1.7 and earlier behaviour |
We could first check if the contents of the clipboard can be converted to text, and if not, return the empty string.
|
It would be amazing if the clipboard function could be extended by libraries somehow. |
#46981 still happens, not when the clipboard is empty, but when there is an image in the clipboard
to reproduce, copy an image (outside Julia), then type
clipboard()
in the Julia terminal:the error doesn't happen in 1.7, but it does happen in 1.8.3 (where I believe #47311 was merged) and 1.9-alpha
Note that in 1.7, it appeared as an empty string, even though there is actually an image in the clipboard. 1.8.3 or 1.9 doesn't error with an empty string
Also note that ironically, the error message "L’opération a réussi" means "The operation succeeded" in French (my system language)
The text was updated successfully, but these errors were encountered: