Unable to install under C locale

Bug #1460472 reported by My Karlsson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MenuLibre
Fix Released
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.

Revision history for this message
My Karlsson (mykarlsson-deactivatedaccount) wrote :
Revision history for this message
Sean Davis (bluesabre) wrote :

Thanks for the great patch. Added for next release.

Changed in menulibre:
status: New → Fix Committed
Sean Davis (bluesabre)
Changed in menulibre:
milestone: none → 2.0.7
status: Fix Committed → Fix Released
assignee: nobody → Sean Davis (bluesabre)
Revision history for this message
Sean Davis (bluesabre) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.