[Github-comments] [geany/geany-plugins] (Solved) [debugger] freezes when python .pth files have non ASCII bytes (Issue #1143)

elextr notifications at xxxxx
Sun Dec 5 11:01:51 UTC 2021


I forgot you can see what locale Geany thinks its in by looking at `Help->Debug Messages` which should say something like:

```
Geany INFO		: Geany 1.39 (git >= b7558417), en_AU.UTF-8
```

Note LC_ALL environment variable is a convenience to override all the other variables with its value, it does not need to be set if all the other variables are set.  Geany calls `setlocale(LC_ALL, "")` as required to set the various locale categories according to [precedence order defined in 8.2 here](https://pubs.opengroup.org/onlinepubs/007904875/basedefs/xbd_chap08.html#tag_08)

Python site.py changed in 3.10 to explicitly use your LC_CTYPE value to read `.pth` files, so maybe it uses LC_ALL in 3.6 and so assumes ASCII when its not set.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1143#issuecomment-986208767
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211205/f4afc07f/attachment.htm>


More information about the Github-comments mailing list