if I open a document via document_open_file() will it also be opened if
it is already opened?
So, do I need to check myself if a file is already open to prevent it
from being opened again?
Thanks for all help in advance.
I thought I was onto something with there being a need to also call vte_terminal_set_encoding, besides
running Geany with LANG=C.UTF-8 given in the environment. I have rebuild Geany without the
vte_terminal_set_encoding code, and LANG=C.UTF-8 alone gave the expected representation of 'ș' in
the Terminal. It results I made a mistake. Sorry for wasting a little time with this non-issue.
Also thanks for helping with clarifying the utf-8 behavior in Geany's terminal.
Here it is my default environment:
$ env | grep -E '^(LC|LANG)'
I start Geany with a Gnu Bash script which exports LANG=C.UTF-8 before running Geany.
On Sun, 10/22/17, Colomban Wendling <lists.ban(a)herbesfolles.org> wrote:
Subject: Re: [Geany-Devel] UTF-8 in geany's termina, eg. ș
To: "Geany development list" <devel(a)lists.geany.org>
Date: Sunday, October 22, 2017, 1:25 AM
21/10/2017 à 06:49, marius buzea a écrit :
> I would like to share a simple use-case
with Geany. Here it is: you go to the Geany's
> you list a directory that
contains files with names containing 'ș'. It may
be that instead of 'ș' you see
That's very odd, because I've never
seen this problem, and use UTF-8
occasionally (I'm French and we do have é, è, ê, ô,
have never ever seen this
problem. I just tested with Geany with
LANG=C.UTF-8 and it does work just fine.
You might see a problem if the
encoding of one of the locale environment
variables is not properly set to UTF-8: e.g. if
I set LANG=C (so not
encoding) I do see what you mention; but not if I
properly set the encoding using
What is the
output of `env | grep -E '^(LC|LANG)'`? If any of
variables doesn't properly have an
encoding set it might be the reason.
Devel mailing list
I would like to share a simple use-case with Geany. Here it is: you go to the Geany's terminal and
you list a directory that contains files with names containing 'ș'. It may be that instead of 'ș' you see
'??'. For my own use, I have changed vte.c with a call to vte_terminal_set_encoding ( … "UTF-8" … )
and then started Geany with "LANG=C.UTF-8" in the environment, for the result 'ș' being displayed as 'ș'.
You can see the sketch of my approach below. If you think this idea is good for Geany, feel free to apply it,
into vte.c, for example. :) I would also be happy to make a pull request that would add this
change, so that I do not add work for somebody else. (Also, if a pull-request is okay, I would use in it
geany code convention, code style, etc.).
( * vte_terminal_set_encoding )
( VteTerminal * terminal
, const char * codeset
, GError * * error
static gboolean vte_register_symbols(GModule *mod)
if (NULL != (vf->vte_terminal_set_encoding) )
gboolean ignoredTmpAux =
In GNU Bash:
$ export LANG=C.UTF-8
$ cd ~/geany-1.31/usr/bin
I'm trying to build plugins in OSX, and I'm a bit out of my element.
(I've had problems with my yahoo email not getting through to this list, but
I haven't had a chance to switch email accounts. I hope this makes it.)
I'm following the guide on https://github.com/geany/geany-osx
I get stuck running in step 6:
jhbuild build meta-gtk-osx-bootstrap
checking for python module libxml2... ./configure: line 2422: 83400 Done
echo "import $py_module"
83401 Abort trap: 6 | python - >&/dev/null
configure: error: Python module libxml2 is needed to run this package
*** Error during phase configure of itstool: ########## Error running
../configure --prefix /Users/steve/gtk/inst *** [7/12]
 Rerun phase configure
 Ignore error and continue to build
 Give up on module
 Start shell
 Reload configuration
 Go to phase "wipe directory and start over"
 Go to phase "clean"
 Go to phase "distclean"
I've installed libxml2 via homebrew, and py-libxml2 and py27-libxml2 via
macports to no avail.
I figured out how to build the .o file for one of my plugins:
gcc -c quick-search.c -fPIC -std=c99 -DGTK -I
/Users/steve/projects/geany/geany/scintilla/include/ `pkg-config --cflags
glib-2.0` `pkg-config --cflags gtk+-2.0` -I
But not the .so file.
Thanks for any help,