Xref: utzoo comp.bugs.4bsd:1775 comp.unix.admin:1501 comp.unix.wizards:24679 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!ut-emx!clyde From: clyde@ut-emx.cc.utexas.edu (Clyde W. Hoover) Newsgroups: comp.bugs.4bsd,comp.unix.admin,comp.unix.wizards Subject: Re: Bugginess in /etc/printcap and gethostname Keywords: printcap, gethostname Message-ID: <46712@ut-emx.uucp> Date: 4 Apr 91 22:13:44 GMT References: <1057@eplunix.UUCP> Sender: news@ut-emx.uucp Reply-To: clyde@emx.utexas.edu Followup-To: comp.bugs.4bsd Organization: Moose and Squirrel Software, Inc. Lines: 22 In article <1057@eplunix.UUCP>, raoul@eplunix.UUCP (Nico Garcia) writes: |> Apparently, when getting hostnames, the "gethostbyname" does a |> conversion to lower case ( ... ) |> Our system is a Vax 11/750, running mosty BSD 4.3. Can anyone explain |> to me *why* the !@#$ thing does a conversion of hostnames to lower |> case? Or if there is any reason I should not just comment out the |> if statement (we do have a source license)? Because Internet host names are case insensitive, as per some RFC. There may be a bug in gethostnameadr.c in that data from the host file should be treated the same as the hostname argument (i.e. forced to lower case). Change "GatorBox00346" to "gatorbox00346" in hosts and printcap or fix the comparasion in gethostnameadr.c to be truly case-insensitive. Clyde Hoover (Shouter-To-Dead-Parrots) | UNIX/VMS Services | "Forward my mail to the corner Compuatation Center, UT Austin | of Pork and Beans" clyde@emx.utexas.edu |