Tk Source Code

View Ticket
Login
Ticket UUID: 917433
Title: Application initialization failed: unknown color name
Type: Bug Version: obsolete: 8.4.6
Submitter: nobody Created on: 2004-03-16 17:08:30
Subsystem: 30. Color Names Assigned To: dgp
Priority: 9 Immediate Severity:
Status: Closed Last Modified: 2006-04-04 10:34:34
Resolution: Fixed Closed By: dgp
    Closed on: 2006-03-29 16:27:58
Description:
Whne trying to run amsn on linux in the console i get
thiss error that i think has with wish to do?

Application initialization failed: unknown color name
"Black"
User Comments: dgp added on 2006-04-04 10:34:34:
Logged In: YES 
user_id=80530


Related complaints regarding
other apps damaged by bad
migration to xorg at

http://lists.debian.org/debian-x/2005/11/msg00038.html

kdekorte added on 2006-03-30 00:16:28:
Logged In: YES 
user_id=685413

I just found what my problem was. I was using xorg 7.0 and
still had RgbPath in my xorg.conf file. I removed that line
and wish started working properly.

dgp added on 2006-03-29 23:27:58:
Logged In: YES 
user_id=80530


Changed "Black" to "#000000"
and "White" to "#ffffff"
in unix/tkUnixDefault.h in
order to work around the
(broken?) X servers that don't
accept these color names.

kdekorte added on 2006-03-25 01:59:13:
Logged In: YES 
user_id=685413

I recently upgraded my fedora core 4 machine to FC5 and I am
now getting this error. On a clean install of FC5 on another
machine I am not getting this error. So it does not appear
to be in the package. Is there a file I can look at to see
where this is coming from. 

I run "wish" on the command line

There is no .wishrc file in my home directory.

dgp added on 2006-03-11 04:05:05:
Logged In: YES 
user_id=80530


resolve this for 8.4.13 ?

dgp added on 2006-02-21 21:29:44:
Logged In: YES 
user_id=80530


unix/tkUnixDefault.h also #defines
macros to the value "Black".  If it's
against the rules to use this color name,
then Tk itself is breaking those rules.

dgp added on 2006-02-21 21:25:15:
Logged In: YES 
user_id=80530


Re-opening.

If "Black" is not a portable color name,
then Tk's own demo collection ought not
be using it, right?  It does.

hobbs added on 2004-03-17 02:09:44:
Logged In: YES 
user_id=72656

"Black" is not a cross-platform safe color name, but "black"
is (or better yet, #000000).  Use of named colors should be
restrictive (and all lower case) because the X server names
the colors (and Tk on Windows or Mac just aliases them).