Discussion:
[MacPorts] #45791: Cannot open geany after installing the geany from macport?
MacPorts
2014-11-05 18:32:55 UTC
Permalink
#45791: Cannot open geany after installing the geany from macport?
------------------------------+--------------------------------
Reporter: shreyasjoshi15@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Keywords: | Port:
------------------------------+--------------------------------
I have installed the geany using macport

#sudo port install geany

Now, when I try to launch geany from spot light. I get the following
errors.

A terminal opens -

Last login: Wed Nov 5 23:44:51 on ttys001
SHREYASs-MacBook-Pro:~ shreyasjoshi$ /opt/local/bin/geany ; exit;

(process:9451): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Geany: cannot open display

logout

[Process completed]
--
Ticket URL: <https://trac.macports.org/ticket/45791>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-05 20:27:12 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------
Changes (by ryandesign@…):

* owner: macports-tickets@… => kiarash@…
* cc: ryandesign@… (added)
* port: => geany
Post by MacPorts
I have installed the geany using macport
#sudo port install geany
Now, when I try to launch geany from spot light. I get the following
errors.
A terminal opens -
Last login: Wed Nov 5 23:44:51 on ttys001
SHREYASs-MacBook-Pro:~ shreyasjoshi$ /opt/local/bin/geany ; exit;
(process:9451): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Geany: cannot open display
logout
[Process completed]
New description:

I have installed the geany using macport

{{{
#sudo port install geany
}}}

Now, when I try to launch geany from spot light. I get the following
errors.

A terminal opens -

{{{
Last login: Wed Nov 5 23:44:51 on ttys001
SHREYASs-MacBook-Pro:~ shreyasjoshi$ /opt/local/bin/geany ; exit;

(process:9451): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Geany: cannot open display

logout

[Process completed]
}}}

--

Comment:

Usually one launches command-line applications like geany from a terminal
window, not from Spotlight or the Finder. Running `geany` from a terminal
window works for me. If that doesn't work for you either, what is the
value of your `DISPLAY` environment variable? (You can run the `env`
command to find out.)
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-06 02:03:03 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by shreyasjoshi15@…):

This is the env

SHREYASs-MacBook-Pro:~ shreyasjoshi$ env
TERM_PROGRAM=Apple_Terminal
SHELL=/bin/bash
TERM=xterm-256color
TMPDIR=/var/folders/zr/8m0tnsqj3x54m3myk_1m08kh0000gn/T/
Apple_PubSub_Socket_Render=/tmp/launch-7oJDvm/Render
TERM_PROGRAM_VERSION=326
SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk
TERM_SESSION_ID=FFFE4487-150B-46F2-8447-C9BCE2A6CA2C
USER=shreyasjoshi
SSH_AUTH_SOCK=/tmp/launch-WdawR2/Listeners
__CF_USER_TEXT_ENCODING=0x1F5:0:0
PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
__CHECKFIX1436934=1
PWD=/Users/shreyasjoshi
DBUS_LAUNCHD_SESSION_BUS_SOCKET=/tmp/launch-2jTwHm/unix_domain_listener
SHLVL=1
HOME=/Users/shreyasjoshi
LOGNAME=shreyasjoshi
LC_CTYPE=UTF-8
_=/usr/bin/env
SHREYASs-MacBook-Pro:~ shreyasjoshi$
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:2>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-06 02:03:46 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by shreyasjoshi15@…):

Even geany is not getting opened from terminal -

SHREYASs-MacBook-Pro:~ shreyasjoshi$ geany

(process:10224): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Geany: cannot open display

SHREYASs-MacBook-Pro:~ shreyasjoshi$
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:3>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-06 02:48:54 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by ryandesign@…):

Ok, so the `DISPLAY` environment variable is not set. Do you have an X
server installed? Such as the xorg-server port, or the Xquartz package? If
not, you should install it. Then close the terminal window, open a new
one, and try again.
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:4>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-06 03:09:11 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by ryandesign@…):

Please reply in the ticket, not by email.
what will you recommend to install?
They're the same software, so the choice is just whether you would like to
update it via MacPorts or a standalone installer.
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:5>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-06 03:12:36 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by shreyasjoshi15@…):

should I use

#sudo port install xorg-server

or

#sudo port install Xquartz

Which one will you recommend?
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:6>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-06 03:14:37 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by ryandesign@…):

Xquartz is not a port; it's a standalone package you can download from
http://xquartz.macosforge.org . Or if you prefer to install the same
software with MacPorts, you can use "sudo port install xorg-server". I
prefer installing and updating software with MacPorts so I would recommend
using xorg-server.
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:7>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-06 04:21:41 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by shreyasjoshi15@…):

I installed xorg-server. It works, but it throws error on the console.
Also, I don't see the style good as compare to what I see in Linux.

SHREYASs-MacBook-Pro:~ shreyasjoshi$ /opt/local/bin/geany ; exit;

(process:479): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Fontconfig warning: ignoring UTF-8: not a valid region tag
logout

[Process completed]
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:8>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-06 04:22:43 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by shreyasjoshi15@…):

After installing Xorg-server. I restarted my macbook.
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:9>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-06 04:53:23 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by ryandesign@…):

The warnings you see in the terminal are because your `LC_CTYPE`
environment variable is set to the invalid value `UTF-8`. Valid values
would be any of the locales listed in the directory /usr/share/locale. Are
you deliberately setting `LC_CTYPE` in one of your shell startup files? If
so, try not doing that, and letting the terminal set things automatically.
(The terminal will set the `LANG` environment variable to a value that
corresponds to your selections in the Language & Region pane of System
Preferences, and `LC_CTYPE` will take on the value of `LANG` if `LC_CTYPE`
is not set.)

As for the "style", what do you mean exactly? Certainly X11 applications
won't look as nice as native OS X applications, but the way they look
should be comparable to the way they look on other operating systems that
use X11.
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:10>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-06 05:34:01 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by shreyasjoshi15@…):

No, I am not aware of any LC_Type environment. I have not done anything
deliberately. Can you please suggest me the way to set the LC_CTYPE
environment correctly on my macbook?
The valid one.
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:11>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-06 05:36:13 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by shreyasjoshi15@…):

I want to setup for Standard English.
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:12>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-06 05:43:37 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by shreyasjoshi15@…):

SHREYASs-MacBook-Pro:~ shreyasjoshi$ locale
LANG=
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:13>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-06 05:45:00 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by ryandesign@…):

In System Preferences > Language & Region, have you selected English as
the language and United States as the region?

In Terminal > Preferences > Profiles > Advanced, have you enabled the "Set
locale and environment variables on startup" checkbox and set the "Text
encoding" popup menu to "Unicode (UTF-8)"?
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:14>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-06 05:50:57 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by shreyasjoshi15@…):

English as the language and India as the region.
have you enabled the "Set locale and environment variables on startup" ->
Yes.
Yes, the character encoding is UTF-8 unicode.
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:15>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-06 05:59:35 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by ryandesign@…):

Ah, ok. Yes, OS X does not have an "en_IN.UTF-8" locale in the
/usr/share/locale directory, so the automatic locale selection won't work
for this combination of language and region. You could manually set the
`LANG` environment variable to one of the locales in /usr/share/locale,
for example:

{{{
export LANG=en_US.UTF-8
}}}

Do this in your shell startup file, such as ~/.profile, ~/.bash_profile,
~/.bashrc, etc.
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:16>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-06 06:18:29 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by shreyasjoshi15@…):

I only have a ~/.profile file on my mac. I don't have bashrc and
bash_profile.
Is it sufficient to set only on ~./profile?
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:17>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-06 06:24:05 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by ryandesign@…):

Sure, set it in whichever shell startup file you use.
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:18>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-06 06:59:10 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by shreyasjoshi15@…):

Isnt' a bug from Mac OS that they don't have bothered to have support for
India and English.
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:19>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-06 11:11:47 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by larryv@…):

Apple cannot provide a locale file for every possible combination of
country, language, and encoding. You’re free to
[https://bugreport.apple.com file a bug] with them if you wish.
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:20>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-07 09:23:16 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------

Comment (by shreyasjoshi15@…):

I guess, you can close this. It is good to support locale for India, I
will say.
India is the large market for computers. Also, there is a significant
contribution by India in the technology.
I am moved that Apple don't even bother for India, but I am sure that
there are many Indians, who works for great companies like Apple, Google,
and Facebook.
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:21>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2014-11-07 17:03:50 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+-----------------------
Reporter: shreyasjoshi15@… | Owner: kiarash@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+-----------------------
Post by MacPorts
I am moved that Apple don't even bother for India
As I already said, locales aren’t about “supporting” every combination of
country, language, and encoding, as that would be an infeasible task. If
you look inside `/usr/share/locale`, the only English locales are for
Australia, Canada, Ireland, New Zealand, the United Kingdom, and the
United States — probably because those are the primary countries in which
English is a dominant language.

The [http://unicode.org/cldr/charts/supplemental/likely_subtags.html
comprehensive list] at the Unicode Common Locale Data Repository doesn’t
suggest any India/English locales either. I’m almost sure that China has
more English speakers than Ireland, but there are no `en_CN.*` locales.
And the population of Spanish speakers in the United States is almost as
great as the entire population of Spain, but there are no `es_US.*`
locales.

Did you actually get the locale to work? I’d expect that `en_GB.UTF-8`
would be closest to what you want.
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:22>
MacPorts <https://www.macports.org/>
Ports system for OS X
MacPorts
2018-11-27 21:49:56 UTC
Permalink
#45791: geany: cannot open display
-------------------------------+----------------------
Reporter: shreyasjoshi15@
 | Owner: (none)
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.3.2
Resolution: | Keywords:
Port: geany |
-------------------------------+----------------------
Changes (by mf2k):

* owner: kiarash@
 => (none)
* status: new => assigned


Comment:

See #57151.
--
Ticket URL: <https://trac.macports.org/ticket/45791#comment:23>
MacPorts <https://www.macports.org/>
Ports system for macOS
Loading...