Prashanth VG
Prashanth VG

Reputation: 191

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

Upvotes: 2

Views: 1186

Answers (2)

Vishvajeet Dubey
Vishvajeet Dubey

Reputation: 11

Below is the solution that I tried and it is working for me:

STEP 1:
Open the below RabbitVCS.log file.

$ cat ~/.config/rabbitvcs/RabbitVCS.log

Scroll to the very bottom of the log and note the line number(in my case it is 824)

  File "/usr/lib/python3/dist-packages/rabbitvcs/vcs/git/__init__.py", line 824
    locale.setlocale(locale.LC_ALL, current_locale)

STEP 2:
Take the /usr/lib/python3/dist-packages/rabbitvcs/vcs/git/__init__.py file from log and open in gedit.

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

STEP 3:
Go to that line (in my case, it is 824) and make the following edits:

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

Upvotes: 1

Prashanth VG
Prashanth VG

Reputation: 191

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.

Upvotes: 6

Related Questions