virtaal icon indicating copy to clipboard operation
virtaal copied to clipboard

Can't open file if folde name have letters like "æ"

Open scootergrisen opened this issue 9 years ago • 4 comments

I wanted to report a bug but http://bugs.locamotion.org/ says "Bad Request (400)".

The bug is that i cant open a file in Virtaal if the file is placed in a foldes called for example "oversættelser" with the "æ" letter Virtaal 0.7.1 are not able to open the file. Virtaal shows a dialog with something like... could not open file... this file does not exists.

If i change "oversættelser" to something without "æ" like "oversettelser", Virtall 0.7.1 are able to open the file.

Using Windows 7.

scootergrisen avatar May 15 '15 21:05 scootergrisen

bugs.locamotion.org bugzilla has been closed in favour of github, this is the correct place to report bugs.

jleclanche avatar May 16 '15 00:05 jleclanche

Maybe that site should say it have changed. On https://github.com/translate/virtaal#reporting-bugs it says to use the Help menu to report bugs.

scootergrisen avatar May 16 '15 00:05 scootergrisen

Noted, thanks.

jleclanche avatar May 16 '15 00:05 jleclanche

Only seems i can't open the file from a folder called something like "æ" if i try to drag and drop it into the Virtaal window.

If i try to drag and drop it i get this. error

And when i close the Virtaal window i get a dialog telling me about something was added to the log which is this.

ERROR:root:MainController.open_file(filename="C:/æ/test.po", uri="") Traceback (most recent call last): File "virtaal\controllers\maincontroller.pyo", line 208, in open_file File "virtaal\controllers\storecontroller.pyo", line 220, in open_file File "virtaal\models\storemodel.pyo", line 61, in init File "virtaal\models\storemodel.pyo", line 133, in load_file IOError: Filen findes ikke.

I can open the file from Windows explorer or open it with open from inside the Virtaal window. But if i do so the file is not added to the recent files list in Virtaal.

scootergrisen avatar Jan 01 '21 20:01 scootergrisen