Search code examples
gitubuntunautilusrabbitvcs

How to fix Unsupported locale settings on rabbitVCS show logs


I am running Ubuntu 16.04 with GIT, Nautilus and rabbitVCS. When i right click git repos files and then show logs it says 'Unsupported local setting'.

I have already tried adding local setting to the .bashrc in the home folder and restarted nautilus but it didnt work.

this is what i added :

export LANGUAGE=en_US.UTF-8

export LANG=en_US.UTF-8

export LC_ALL=en_US.UTF-8


Solution

  • I found out in the rabbitVCS forum that one has to change the python code itself.

    Do this first

    cd ~/.config/rabbitvcs
    
    gedit RabbitVCS.log 
    

    Go all the way down in the gedit and check this line :

    File "/usr/lib/python2.7/dist-packages/rabbitvcs/vcs/git/init.py", line 793, in log locale.setlocale(locale.LC_ALL, current_locale)

    Note down the line number and go to that document by terminal

    $sudo gedit /usr/lib/python2.7/dist-packages/rabbitvcs/vcs/git/__init__.py
    

    and go to that line (For me its 793) and edit it to the following:

    locale.setlocale(locale.LC_ALL, "C")
    

    Once you have followed these steps, the show logs should be working fine.