On Thu, 2004-07-29 at 12:31, Viraj Chatterjee wrote:> Whenever I launch my GTK+ based application on a > client''s machine (Red Hat 8.0, 9.0), I get the > following two errors: > > Fontconfig error: line 1: unknown encoding > Fontconfig error: Cannot load default config file > > On searching the Internet, someone hinted that it is > possible that the /etc/fonts/fonts.conf file isn''t in > an encoding that fontconfig can understand correctly > and hence the problem. Though, I found no errors with > the said file. The fc-list and fc-cache commands work > correctly and I also tried force converting the > fonts.conf file to UTF-8 and then trying to launch my > application, but that too didn''t help. > > Any ideas, on what might be wrong?An what does the client''s machine''s environment variables LANG, and LC_* look like? Regards, Enrique
The first few lines in the /etc/fonts/fonts.conf file are the following: <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <!-- /etc/fonts/fonts.conf file to configure system font access --> <fontconfig> --- Keith Packard <keithp@keithp.com> wrote:> > Around 3 o''clock on Jul 29, Viraj Chatterjee wrote: > > > Fontconfig error: line 1: unknown encoding > > Fontconfig error: Cannot load default config file > > What does the first line of the config file look > like? > > -keith > > >> ATTACHMENT part 2 application/pgp-signature__________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail
Around 3 o''clock on Jul 29, Viraj Chatterjee wrote:> Fontconfig error: line 1: unknown encoding > Fontconfig error: Cannot load default config fileWhat does the first line of the config file look like? -keith -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 228 bytes Desc: not available Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20040729/29017523/attachment.pgp
LANG is en_US.UTF-8 and so are the rest of the LC_ variables, however, I''ve noted that the error doesn''t change if these are changed to let''s say LANG=C, or something else. Also, the error goes away if I set the following environment variable, GDK_USE_XFT=0, though understandably. I''d like to mention here that the binary for the executable has been made using GTK+ libraries built with the enable-xft option OFF, and I''m trying to run the executable on a system that has GTK+ rpm''s that have a linkage with Xft and fontconfig. Though, I''ll be surprised if this should matter. --- Enrique Perez-Terron <enrio@online.no> wrote:> On Thu, 2004-07-29 at 12:31, Viraj Chatterjee wrote: > > Whenever I launch my GTK+ based application on a > > client''s machine (Red Hat 8.0, 9.0), I get the > > following two errors: > > > > Fontconfig error: line 1: unknown encoding > > Fontconfig error: Cannot load default config file > > > > On searching the Internet, someone hinted that it > is > > possible that the /etc/fonts/fonts.conf file isn''t > in > > an encoding that fontconfig can understand > correctly > > and hence the problem. Though, I found no errors > with > > the said file. The fc-list and fc-cache commands > work > > correctly and I also tried force converting the > > fonts.conf file to UTF-8 and then trying to launch > my > > application, but that too didn''t help. > > > > Any ideas, on what might be wrong? > > An what does the client''s machine''s environment > variables > LANG, and LC_* look like? > > Regards, > Enrique > > _______________________________________________ > fontconfig mailing list > fontconfig@freedesktop.org > http://freedesktop.org/mailman/listinfo/fontconfig >_______________________________ Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now. http://messenger.yahoo.com
Whenever I launch my GTK+ based application on a client''s machine (Red Hat 8.0, 9.0), I get the following two errors: Fontconfig error: line 1: unknown encoding Fontconfig error: Cannot load default config file On searching the Internet, someone hinted that it is possible that the /etc/fonts/fonts.conf file isn''t in an encoding that fontconfig can understand correctly and hence the problem. Though, I found no errors with the said file. The fc-list and fc-cache commands work correctly and I also tried force converting the fonts.conf file to UTF-8 and then trying to launch my application, but that too didn''t help. Any ideas, on what might be wrong? __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo