Linux: FileZilla error message – A local filename could not be decoded

Fix LC_CTYPE error message when starting FileZilla.

When starting FileZilla I always got the following error message. After clicking OK, the application started normally, but it was still annoying.

A local filename could not be decoded.
Please make sure the LC_CTYPE (or LC_ALL) environment variable is set correctly.
Unless you fix this problem, files might be missing in the file listings.
No further warning will be displayed this session.

Table of content

Video

The solution

However, the problem can be fixed quite easily. To do this, we edit the link of the application:

sudo vim /usr/share/applications/filezilla.desktop

In the file we look for the following line:

Exec=filezilla

Then we replace the line with the following:

Exec=env LC_ALL=en_US.UTF-8 filezilla

After that, the application started without any problems.

2 comments

  1. Hi:
    All at sudden I am experiencing “A local filename could not be decoded” error with Filezilla. I wonder what is wrong since I use it for years without any problem. Could be I use en_GB as the interface language and sl_SI as setting for all other matters as date, time, currency etc.
    Using opensuse Leap 16.0, KDE Plasma, Filezilla 3.69.3 (although I DL-ed the latest release, no change at all).
    Entering command locale, I get the following reply:

    locale: Cannot set LC_ALL to default locale: No such file or directory
    LANG=en_GB.UTF-8
    LC_CTYPE=en_GB.UTF-8
    LC_NUMERIC=en_SI.UTF-8
    LC_TIME=sl_SI.UTF-8
    LC_COLLATE=sl_SI.UTF-8
    LC_MONETARY=sl_SI.UTF-8
    LC_MESSAGES=”en_GB.UTF-8″
    LC_PAPER=sl_SI.UTF-8
    LC_NAME=sl_SI.UTF-8
    LC_ADDRESS=sl_SI.UTF-8
    LC_TELEPHONE=sl_SI.UTF-8
    LC_MEASUREMENT=sl_SI.UTF-8
    LC_IDENTIFICATION=”en_GB.UTF-8″
    LC_ALL=

    Any suggestion.
    Thank you ad regards.

  2. Hi Bojan,

    That error (locale: Cannot set LC_ALL…) could indicate that one of the configured locales might be missing or invalid on your system. For instance, LC_NUMERIC=en_SI.UTF-8 seems a bit unusual and might not be generated properly.

    You could try a few steps to fix or work around this:

    – Check currently active locales with locale -a
    – Reconfigure potential misconfigurations (like en_SI.UTF-8) via YaST -> System -> Language or in /etc/locale.conf

    Hope this might help!

Leave a Reply

Your email address will not be published. Required fields are marked *