Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!mnetor!uunet!seismo!uwvax!uwmacc!uwmcsd1!leah!itsgw!batcomputer!pyramid!voder!blia!ted
From: ted@blia.BLI.COM (Ted Marshall)
Newsgroups: comp.os.vms
Subject: Re: Yet another bug in VMS C
Message-ID: <2999@blia.BLI.COM>
Date: Mon, 27-Jul-87 12:14:42 EDT
Article-I.D.: blia.2999
Posted: Mon Jul 27 12:14:42 1987
Date-Received: Tue, 28-Jul-87 07:21:43 EDT
References: <880@bsu-cs.UUCP> <3639@oberon.USC.EDU>
Organization: Britton Lee, Los Gatos, CA
Lines: 17
Summary: DCL and VAXCRTL

In article <3639@oberon.USC.EDU>, tli@sargas.usc.edu (Tony Li) writes:
> In article <880@bsu-cs.UUCP> dhesi@bsu-cs.UUCP (Rahul Dhesi) writes:
>     I have discovered truly bizarre behavior in C for VAX/VMS.  The
>     command-line arguments are folded to all lowercase.  The only way of
>     preserving case seems to be to enclose arguments in double quotes.
> It's not C at all.  It's DCL.  This is a ?feature?.  Yes, you've
> discovered the only workaround is to use double quotes.

Actually, it's both DCL and the VAX C RTL. DCL folds all non-quoted input
to UPPER case. The VAX C implementors knew that this would cause problems
for almost all Unix programs that use the argument vector. They coped as
best they could (I guess) by re-folding the un-quoted text to lower case.

-- 
Ted Marshall       ...!ucbvax!mtxinu!blia!ted  mtxinu!blia!ted@Berkeley.EDU
Britton Lee, Inc., 14600 Winchester Blvd, Los Gatos, Ca 95030     (408)378-7000
The opinions expressed above are those of the poster and not his employer.