Re: FVWM: bug in configuration file parsing

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Sun, 8 Aug 1999 09:22:34 +0200

On Fri, Aug 06, 1999 at 03:38:53PM -0400, William L. Sebok wrote:
> Both fvwm 2.2.2 and fvwm 2.3.5 do not recognize tokens that are surrounded by
> double quotes which contain embedded spaces. In particular the line:
>
> MenuStyle midnightblue "light blue" midnightblue "-adobe-new century schoolbook-*-i-*-*-14-*-*-*-*-*-*-*" fvwm
>
> generates:
>
> [FVWM][nocolor]: <<ERROR>> can't parse color light
> and
> [GetFontOrFixed]: WARNING -- can't get font -adobe-new, trying 'fixed'[FVWM][scanForPixmap]: <<WARNING>> Couldn't find pixmap height
>
> As system manager of the UMD astronomy department, this bug is a show stopper,
> making me unable to upgrade past the current fvwm (2.046). For the past number
> of years I have been handing out a .fvwmrc with the above line to new users and
> thus upgrading fvwm would now break most users' desktops.
>
> If double quotes won't protect a token from being broken up then what is the
> use for double quotes? I can substitute LightBlue for "light blue" but there
> is no getting around that some font names have embedded spaces.

Don't panic. The MenuStyle command has been completely rewritten and
obviously we forgot to handle quoting properly with the old syntax. It
is fixed in the development sources now. Anyway, you can work around
this bug by using the new syntax:

  MenuStyle * fvwm
  MenuStyle * Foreground midnightblue
  MenuStyle * Background "light blue"
  MenuStyle * Greyed midnightblue
  MenuStyle * Font "-adobe-new century schoolbook-*-i-*-*-14-*-*-*-*-*-*-*"

This does exactly the same as the one line above. The '*' is the name
of the menu style (different menus can have different styles now).
The options after the name can be written on a single line separated
by commas:

  MenuStyle * fvwm, Foreground midnightblue, Background ...

Note that the 'fvwm' style has to be the first one specified as it
resets most other menu style options to a default value.

Bye

Dominik ^_^

--
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Sun Aug 08 1999 - 04:44:26 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:02 BST