<p>I use macOS High Sierra (10.13.2) and Geany 1.32.<br>
I have configured Geany to use the French l10n by creating an empty file <code>~/.config/geany/use_locale</code>.<br>
The Geany interface is now in French. Great.</p>
<p>My problem is that in Geany LANG is defined as "fr" and LC_ALL is defined as "" (nothing). I can see that by executing in the Geany Terminal window:</p>
<pre><code>[rousseau:~] $ echo $LANG
fr
[rousseau:~] $ echo $LC_ALL

</code></pre>
<p>I have configured the lint menu to do: <code>pep8 --max-line-length=80 "%f"</code> and in the Compilateur window I get:</p>
<pre><code>pep8 --max-line-length=80 "dé.py" (dans le dossier : /Users/rousseau/Documents/Sources/Python)
Traceback (most recent call last):
  File "/usr/local/bin/pep8", line 11, in <module>
    sys.exit(_main())
  File "/usr/local/lib/python3.6/site-packages/pep8.py", line 2134, in _main
    report = pep8style.check_files()
  File "/usr/local/lib/python3.6/site-packages/pep8.py", line 1842, in check_files
    runner(path)
  File "/usr/local/lib/python3.6/site-packages/pep8.py", line 1854, in input_file
    return fchecker.check_all(expected=expected, line_offset=line_offset)
  File "/usr/local/lib/python3.6/site-packages/pep8.py", line 1619, in check_all
    return self.report.get_file_results()
  File "/usr/local/lib/python3.6/site-packages/pep8.py", line 1750, in get_file_results
    'code': code, 'text': text,
UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 1: ordinal not in range(128)
Compilation échouée.
</code></pre>
<p>If I hack <code>/Applications/Geany.app/Contents/MacOS/geany</code> to add the line:</p>
<pre><code>LC_ALL=fr_FR.UTF-8
</code></pre>
<p>Then Geany works correctly and I get the expected output:</p>
<pre><code>pep8 --max-line-length=80 "dé.py" (dans le dossier : /Users/rousseau/Documents/Sources/Python)
dé.py:30:1: E302 expected 2 blank lines, found 0
Compilation échouée.
</code></pre>
<p>The problem is caused by the accent in the source code file: <code>dé.py</code>. If I rename the file to <code>de.py</code> then I do not have the problem.</p>
<p>I can also define LANG=fr_FR.UTF-8 instead of LC_ALL for the same result.</p>
<p>What is important is to add the ".UTF-8" extension.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1732">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ2vOs0n0fqWYIgSrjOA-7WXLTSXKks5tG75KgaJpZM4RSDNc">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ3v40ixxFdpksJw7lKs4GjyE6JjRks5tG75KgaJpZM4RSDNc.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1732"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"In the Compiler window: UnicodeEncodeError: 'ascii' codec can't encode character '\\xe9' in position 1: ordinal not in range(128) (#1732)"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1732"}}}</script>