Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upqubes-manager: UnicodeEncodeError if there are cyrillic letters in "Run command in VM" query. #2040
Comments
andrewdavidwong
added
bug
C: qubes-manager
localization
labels
May 29, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Should be taken into account in #1870. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
andrewdavidwong
Oct 1, 2016
Member
Another user report:
On 2016-10-01 12:13, ( - wrote:
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))
|
Another user report: On 2016-10-01 12:13, ( - wrote:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
igilik
Oct 2, 2016
--- /usr/lib64/python2.7/site-packages/qubesmanager/main.py.orig 2016-09-29 23:18:15.732999994 +0600
+++ /usr/lib64/python2.7/site-packages/qubesmanager/main.py 2016-10-01 21:06:54.464999973 +0600
@@ -1404,7 +1404,7 @@
return
thread_monitor = ThreadMonitor()
thread = threading.Thread(target=self.do_run_command_in_vm, args=(
-
vm, str(command_to_run), thread_monitor)) -
vm, unicode(command_to_run), thread_monitor)) thread.daemon = True thread.start()
igilik
commented
Oct 2, 2016
|
--- /usr/lib64/python2.7/site-packages/qubesmanager/main.py.orig 2016-09-29 23:18:15.732999994 +0600
|
marmarek
closed this
Oct 5, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Oct 5, 2016
Member
Automated announcement from builder-github
The package qubes-manager-3.2.4-1.fc23 has been pushed to the r3.2 testing repository for dom0.
To test this update, please install it with the following command:
sudo qubes-dom0-update --enablerepo=qubes-dom0-current-testing
|
Automated announcement from builder-github The package
|
marmarek
added
the
r3.2-dom0-cur-test
label
Oct 5, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Oct 17, 2016
Member
Automated announcement from builder-github
The package qubes-manager-3.2.4-1.fc23 has been pushed to the r3.2 stable repository for dom0.
To install this update, please use the standard update command:
sudo qubes-dom0-update
Or update dom0 via Qubes Manager.
|
Automated announcement from builder-github The package
Or update dom0 via Qubes Manager. |
rashchedrin commentedMay 29, 2016
Qubes OS version:
R3.0
Affected: Qubes VM Manager
If in Qubes Manager use item "Run command in VM" then enter anything with Cyrillic letters and hit enter, appears message that says "Whoops. A critical error has occured...".
Expected behavior:
Send command to VM with Cyrillic letters, or warn with something not as scary as critical error.
Actual behavior:
Appears message with text
Steps to reproduce the behavior:
Right click on any vm in Qubes Manager, click "run command in VM", type привет , hit enter.