Unable to install under C locale

Bug #1460472 reported by My Karlsson on 2015-05-31
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MenuLibre
Undecided
Sean Davis

Bug Description

Summary:

It is not possible to install MenuLibre under the C and possibly other locales.

Steps to reproduce:

1. LANG=C python3.4 setup.py install

Expected result:

MenuLibre should be successfully installed.

Actual result:

Traceback (most recent call last):
  File "setup.py", line 195, in <module>
    cmdclass={'install': InstallAndUpdateDataDirectory}
  File "/usr/lib/python3.4/site-packages/DistUtilsExtra/auto.py", line 100, in setup
    distutils.core.setup(**attrs)
  File "/usr/lib64/python3.4/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib64/python3.4/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python3.4/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "setup.py", line 181, in run
    update_desktop_file(desktop_file, script_path)
  File "setup.py", line 115, in update_desktop_file
    for line in fin:
  File "/usr/lib64/python3.4/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 57: ordinal not in range(128)

Workaround:

I have attached a patch which makes setup.py open files with a specified encoding. After applying the patch MenuLibre installed successfully.

Sean Davis (bluesabre) wrote :

Thanks for the great patch. Added for next release.

Changed in menulibre:
status: New → Fix Committed
Sean Davis (bluesabre) on 2015-08-09
Changed in menulibre:
milestone: none → 2.0.7
status: Fix Committed → Fix Released
assignee: nobody → Sean Davis (bluesabre)
Sean Davis (bluesabre) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related blueprints