I plead with the various program developers to make
the media selection and media names that they use
CASELESS on input...  Letter, LETTER, and letter
should all be Letter (or letter) (or LETTER)
for the appropriate program.

Here is a patch for a2ps that will fix up their
case comparisons,  save the time and hair (what
little is left) of sysadmins trying to figure
out why the 'Media' selection dies...

Patrick ("Media selection?  Ummm... right now
  I listen mostly to the KPBS San Diego station,
  and Dirk Sutros 'The Lounge' show.  He has the
  most AMAZING set of guests.  I can't believe
  that tabla guy the other day...  and the
  ... well... cool stuff") Powell

*** lib/media.c Thu Nov 30 05:38:57 2000
--- lib/media.c.orig    Thu Nov 30 05:26:33 2000
***************
*** 158,184 ****
  a2ps_get_medium (a2ps_job * job, const char * name)
  {
    struct medium *item;
-   struct medium ** media;
    struct medium token;
-   int i;
  
    token.name = NULL;
    if (strcaseequ (name, LIBPAPER_MEDIUM))
      token.name = (char *) systempapername ();
    if (!token.name)
      token.name = (char *) name;
  
-   media = (struct medium **) hash_dump (job->media, NULL, medium_hash_qcmp);
- 
-   for (i = 0 ; media[i] ; i++){
-       if( strcaseequ( media[i]->name, token.name ) ) {
-               token.name = media[i]->name;
-               break;
-       }
-   }
- 
    item = (struct medium *) hash_find_item (job->media, &token);
-   FREE (media);
  
    if (item == NULL)
      error (1, 0, _("unknown medium `%s'"), quotearg (token.name));
--- 158,173 ----
  a2ps_get_medium (a2ps_job * job, const char * name)
  {
    struct medium *item;
    struct medium token;
  
    token.name = NULL;
    if (strcaseequ (name, LIBPAPER_MEDIUM))
      token.name = (char *) systempapername ();
+ 
    if (!token.name)
      token.name = (char *) name;
  
    item = (struct medium *) hash_find_item (job->media, &token);
  
    if (item == NULL)
      error (1, 0, _("unknown medium `%s'"), quotearg (token.name));

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to