[Github-comments] [geany/geany] Windows: Convert working directory to locale encoding before spawning commands (#1095)

Colomban Wendling notifications at xxxxx
Tue Jun 28 00:36:04 UTC 2016


@elextr it depends on the encoding J. Random Pluginster has for his various variables.  Yes, if it comes from the UI, it's likely to be in UTF-8, because that's what GTK uses.  Less so if it comes from configuration files, environment or whatnot.

IMO it's better to have as few conversions as possible, so the API expecting locale is good IMO if it uses that.  Yes, if there's a popular demand, we could add UTF-8 variants so it converts all arguments from UTF-8 to the locale as the normal API expects, but that would have similar drawbacks if the calling code has some stuff in locale encoding already.

So I guess we need to

* make the Spawn API docs clear on the encoding it expects (if not already good enough)
* check what we'd actually need, and add appropriate helper functions if sensible

---
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/pull/1095#issuecomment-228916555
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160627/15c17bd6/attachment.html>


More information about the Github-comments mailing list