qubesmanager ver. 3.1 unicode chars "run command in vm"

22 views
Skip to first unread message

( -

unread,
Oct 1, 2016, 3:13:27 PM10/1/16
to qubes-devel
Hello !

When using "Run command in VM" I found this little bug with unicode chars.

UnicodeEncodeError: 'ascii' codec can't encode characters in position 27-30: ordinal not in range(128)

This is most likely a bug in the Qubes Manager

----
line: vm, str(command_to_run), thread_monitor))
func: action_run_command_in_vm_triggered
line no.: 1407
file: /usr/lib64/python2.7/site-packages/qubesmanager/main.py

So I try to make a one-line patch and test it with non-ascii string.

xterm -hold -e 'echo "test-тест"'

I guess this behavior exist in ver. 3.2 too.

See attached diff and screenshots.

-            vm, str(command_to_run), thread_monitor))
+            vm, unicode(command_to_run), thread_monitor))

main.py.diff
main.py.message.txt
snapshot_xterm_unicode_echo_test_0.png
snapshot_xterm_unicode_echo_test_0_error.png
snapshot_xterm_unicode_echo_test_1.png
snapshot_xterm_unicode_set_grep_lang_1.png

Andrew David Wong

unread,
Oct 1, 2016, 3:48:34 PM10/1/16
to ( -, qubes-devel
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Thanks for the report! This is a known issue that is being tracked here:

https://github.com/QubesOS/qubes-issues/issues/2040

I've added your report as a comment to this issue.

- --
Andrew David Wong (Axon)
Community Manager, Qubes OS
https://www.qubes-os.org
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJX8BMAAAoJENtN07w5UDAwKVYQALD24ur2b2Bs7n96yFe/ZqIE
umpo6QToXrxshsK/JtTxXK297gR44sjPxF8so/w70MwoUutzAOmdaB7CWaraWns5
lBxX5ewyFFe03QoeMLD7E5QbjTfYmqX3530xzGAfjpCy7a2jxwyot8okJfMUaryj
e+ZDkM7xuX9zEGj1/QE3v7A2Ess+RyRs/+OPHGZW0ucSiUIBf0069k3fIsEiRVtM
ykLKQZU0iF90Lf6WsXaZWNGMmU+Mrm8X/i+mzFMFfYSzEuwESTToYtnocZN9BHfg
9J+jtrPU2Mw3ahLar8dNOe+AN+SVFFEby8MJfneZfenRdEUPmIgZhTn5ImRPmNdH
mkEblLteJ9mxl3NSB049p+QluTiOFNF9w3TnJi18UjALcQr/6A5vFfueVbPq2eP7
4jdKFjIDADJNUNOSWd7tZOknv49m1sVEDaiij/Jn8Cb/wi/wyvEvPQmVkDszpGAX
RZCOO7qHtmU3bkdEhf/pJ5OwcUKtyLe54Hjkw43vUlHCQRSDB7keHbxNNimIm8ZR
9t/q2VyFVnr6nt6S5vdikt3a3h4vyaAeKmUoxZU43JzVzWgquZnxhACWXXdY3rsZ
+cCts5gI/S5flu0mUz/48XwjFG7J5EUubGrmt21sTfoTZjF8u7uvUmlqm0Zqlj83
NtNWsmJTzEhWoHKpBvRj
=Xf3x
-----END PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages