public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: why is hostname(1) output in UPPERCASE?
  2003-01-13  3:30   ` Corinna Vinschen
@ 2003-01-13  3:30     ` Eric De Mund
  0 siblings, 0 replies; 5+ messages in thread
From: Eric De Mund @ 2003-01-13  3:30 UTC (permalink / raw)
  To: cygwin

Corinna,

Eric De Mund <ead@ixian.com>:
] Why is hostname(1) output in UPPERCASE, when the native Windows 2000
] hostname.exe outputs lowercase?

Thorsten Kampe <thorsten@thorstenkampe.de>:
] Cygwin hostname reads
]
] [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName]
] "ComputerName"="<uppercase_name>"
]
] while the native reads
]
] [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
] "ComputerName"="<lowercase_name>"

Corinna Vinschen <corinna-cygwin@cygwin.com>:
] Fixed.

Many thanks.

Eric
--
"Desert Storm was a stirring victory for the forces of aggression and
lawlessness." --former Vice President Dan Quayle

Eric De Mund <ead@ixian.com> | Ixian Systems, Inc. | 53 49 B2 23 AF 6C 20 81
http://www.ixian.com/ead/    | Mountain View, CA   | ED DD 4C 81 AA C9 D1 A5

^ permalink raw reply	[flat|nested] 5+ messages in thread

* why is hostname(1) output in UPPERCASE?
@ 2003-01-13  3:30 Eric De Mund
  2003-01-13  3:30 ` Thorsten Kampe
  0 siblings, 1 reply; 5+ messages in thread
From: Eric De Mund @ 2003-01-13  3:30 UTC (permalink / raw)
  To: cygwin

Hello,

Why is hostname(1) output in UPPERCASE, when the native Windows 2000
hostname.exe outputs lowercase? Is this something I've unwittingly
enabled? Regardless, shouldn't RFC 1178's suggestion be followed? (It
states, "convention dictates that computer names appear all lowercase.")
Or is this a sh-utils rather than a cygwin bug?

Here's my current output:

    ead@COWBERRY ~
    $ hostname
    COWBERRY

    ead@COWBERRY ~
    $ /cygdrive/c/WINNT/system32/hostname
    cowberry

    ead@COWBERRY ~
    $

This is in a brand new and complete 2003.01.09 download and install of
cygwin on a Windows 2000 Professional SP2 machine (under both bash(1)
and zsh(1)). See the output of "cygcheck --sysinfo", below, if
necessary.

Many thanks,
Eric

------------------------------
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Thu Jan 09 23:07:03 2003

Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2

Path:   C:\pkg\cygwin\usr\local\bin
        C:\pkg\cygwin\bin
        C:\pkg\cygwin\bin
        c:\WINNT\system32
        c:\WINNT
        c:\WINNT\System32\Wbem
        C:\pkg\cygwin\usr\X11R6\bin

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

HOME = `c:\home\ead'
MAKE_MODE = `unix'
PWD = `/cygdrive/c/home/ead'
USER = `ead'

Use `-r' to scan registry

a:  fd           N/A    N/A
c:  hd  NTFS   19085Mb  50% CP CS UN PA FC
d:  hd           N/A    N/A
e:  cd           N/A    N/A
f:  cd           N/A    N/A

C:\pkg\cygwin                          /                         system  binmode
C:\pkg\cygwin/bin                      /usr/bin                  system  binmode
C:\pkg\cygwin/lib                      /usr/lib                  system  binmode
C:\pkg\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  system  binmode
.                                      /cygdrive                 user    binmode,cygdrive

Found: C:\pkg\cygwin\bin\bash.exe
Found: C:\pkg\cygwin\bin\cat.exe
Found: C:\pkg\cygwin\bin\cpp.exe
Found: C:\pkg\cygwin\bin\find.exe
Found: C:\pkg\cygwin\bin\gcc.exe
Found: C:\pkg\cygwin\bin\gdb.exe
Found: C:\pkg\cygwin\bin\ld.exe
Found: C:\pkg\cygwin\bin\ls.exe
Found: C:\pkg\cygwin\bin\make.exe
Found: C:\pkg\cygwin\bin\sh.exe

   58k 2002/05/07 C:\pkg\cygwin\bin\cygbz2-1.dll
   54k 2002/01/27 C:\pkg\cygwin\bin\cygbz21.0.dll
    6k 2002/06/24 C:\pkg\cygwin\bin\cygcharset-1.dll
  644k 2002/12/08 C:\pkg\cygwin\bin\cygcrypto.dll
  493k 2002/11/19 C:\pkg\cygwin\bin\cygcurl-2.dll
  380k 2002/07/24 C:\pkg\cygwin\bin\cygdb-3.1.dll
  326k 2002/06/26 C:\pkg\cygwin\bin\cygdb2.dll
  487k 2002/07/24 C:\pkg\cygwin\bin\cygdb_cxx-3.1.dll
  136k 2002/10/17 C:\pkg\cygwin\bin\cygexpat-0.dll
   50k 2002/03/17 C:\pkg\cygwin\bin\cygexslt-0.dll
   45k 2001/04/25 C:\pkg\cygwin\bin\cygform5.dll
   35k 2002/01/09 C:\pkg\cygwin\bin\cygform6.dll
   19k 2002/02/20 C:\pkg\cygwin\bin\cyggdbm.dll
  490k 2002/09/21 C:\pkg\cygwin\bin\cygguile-12.dll
  488k 2002/07/18 C:\pkg\cygwin\bin\cygguile-14.dll
   63k 2002/07/18 C:\pkg\cygwin\bin\cygguile-srfi-srfi-13-14-1.dll
   63k 2002/09/21 C:\pkg\cygwin\bin\cygguile-srfi-srfi-13-14-v-1-1.dll
   24k 2002/07/18 C:\pkg\cygwin\bin\cygguile-srfi-srfi-4-1.dll
   24k 2002/09/21 C:\pkg\cygwin\bin\cygguile-srfi-srfi-4-v-1-1.dll
   14k 2002/07/18 C:\pkg\cygwin\bin\cygguilereadline-14.dll
   14k 2002/09/21 C:\pkg\cygwin\bin\cygguilereadline-v-12-12.dll
   17k 2001/06/28 C:\pkg\cygwin\bin\cyghistory4.dll
   20k 2002/10/10 C:\pkg\cygwin\bin\cyghistory5.dll
  306k 2002/04/27 C:\pkg\cygwin\bin\cyghttpd.dll
  929k 2002/06/24 C:\pkg\cygwin\bin\cygiconv-2.dll
   22k 2001/12/13 C:\pkg\cygwin\bin\cygintl-1.dll
   28k 2002/09/20 C:\pkg\cygwin\bin\cygintl-2.dll
   21k 2001/06/20 C:\pkg\cygwin\bin\cygintl.dll
   45k 2002/02/08 C:\pkg\cygwin\bin\cygjbig1.dll
  119k 2002/02/09 C:\pkg\cygwin\bin\cygjpeg6b.dll
   59k 2002/09/20 C:\pkg\cygwin\bin\cygkpathsea-3-3-7.dll
   32k 2003/01/04 C:\pkg\cygwin\bin\cygltdl-3.dll
   26k 2001/04/25 C:\pkg\cygwin\bin\cygmenu5.dll
   20k 2002/01/09 C:\pkg\cygwin\bin\cygmenu6.dll
  156k 2001/04/25 C:\pkg\cygwin\bin\cygncurses++5.dll
  175k 2002/01/09 C:\pkg\cygwin\bin\cygncurses++6.dll
  226k 2001/04/25 C:\pkg\cygwin\bin\cygncurses5.dll
  202k 2002/01/09 C:\pkg\cygwin\bin\cygncurses6.dll
   15k 2001/04/25 C:\pkg\cygwin\bin\cygpanel5.dll
   12k 2002/01/09 C:\pkg\cygwin\bin\cygpanel6.dll
   40k 2001/11/21 C:\pkg\cygwin\bin\cygpcre.dll
   39k 2001/11/21 C:\pkg\cygwin\bin\cygpcreposix.dll
  175k 2002/07/22 C:\pkg\cygwin\bin\cygpng10.dll
  179k 2002/07/22 C:\pkg\cygwin\bin\cygpng12.dll
  170k 2002/01/21 C:\pkg\cygwin\bin\cygpng2.dll
   22k 2002/06/09 C:\pkg\cygwin\bin\cygpopt-0.dll
  108k 2001/06/28 C:\pkg\cygwin\bin\cygreadline4.dll
  127k 2002/10/10 C:\pkg\cygwin\bin\cygreadline5.dll
  165k 2002/12/08 C:\pkg\cygwin\bin\cygssl.dll
  550k 2002/12/19 C:\pkg\cygwin\bin\cygtcl83.dll
   12k 2002/12/19 C:\pkg\cygwin\bin\cygtclpip83.dll
  253k 2002/02/10 C:\pkg\cygwin\bin\cygtiff3.dll
  217k 2002/12/19 C:\pkg\cygwin\bin\cygtix4183.dll
  830k 2002/12/19 C:\pkg\cygwin\bin\cygtk83.dll
   25k 2002/07/14 C:\pkg\cygwin\bin\cygungif-4.dll
 2689k 2002/11/16 C:\pkg\cygwin\bin\cygxerces-c21.dll
  633k 2002/07/22 C:\pkg\cygwin\bin\cygxml2-2.dll
   41k 2002/01/20 C:\pkg\cygwin\bin\cygXpm-noX4.dll
   46k 2002/01/20 C:\pkg\cygwin\bin\cygXpm-X4.dll
  152k 2002/03/17 C:\pkg\cygwin\bin\cygxslt-1.dll
   15k 2002/03/17 C:\pkg\cygwin\bin\cygxsltbreakpoint-1.dll
   50k 2002/03/12 C:\pkg\cygwin\bin\cygz.dll
  880k 2002/12/25 C:\pkg\cygwin\bin\cygwin1.dll
    Cygwin DLL version info:
        DLL version: 1.3.18
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 69
        Shared data: 3
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix:
        Build date: Wed Dec 25 15:37:50 EST 2002
        Shared id: cygwin1S3

   41k 2002/05/14 C:\pkg\cygwin\usr\X11R6\bin\cygPropList-0.dll

Cygwin Package Information
Package             Version
ELFIO               1.0.0-1
WindowMaker         0.80.0-2
XFree86-base        4.2.0-1
XFree86-bin         4.2.0-2
XFree86-doc         4.2.0-1
XFree86-etc         4.2.0-1
XFree86-f100        4.2.0-2
XFree86-fcyr        4.2.0-2
XFree86-fenc        4.2.0-2
XFree86-fnts        4.2.0-2
XFree86-fscl        4.2.0-2
XFree86-fsrv        4.2.0-1
XFree86-html        4.2.0-1
XFree86-jdoc        4.2.0-1
XFree86-lib         4.2.0-3
XFree86-man         4.2.0-1
XFree86-nest        4.2.0-1
XFree86-prog        4.2.0-1
XFree86-prt         4.2.0-1
XFree86-ps          4.2.0-1
XFree86-startup-scripts4.2.0-3
XFree86-vfb         4.2.0-1
XFree86-xserv       4.2.0-15
XFree86-xwinclip    4.2.0-7
Xaw3d               1.5-1
_update-info-dir    00120-1
agetty              2.1-1
apache              1.3.24-5
ash                 20020731-1
astyle              1.15.3-3
autoconf            2.54-1
autoconf-devel      2.57-1
autoconf-stable     2.13-4
automake            1.7.1-1
automake-devel      1.7.2-1
automake-stable     1.4p5-5
base-files          1.1-1
base-passwd         1.0-1
bash                2.05b-8
bc                  1.06-1
binutils            20021117-1
bison               1.75-1
byacc               1.9-1
bzip2               1.0.2-2
ccache              1.9-1
cgoban              1.9.12-1
chkconfig           1.2.24h-1
clear               1.0-1
cmake               1.4.7-1
compface            1.4-5
cpio                2.5-1
cron                3.0.1-7
crypt               1.0-1
ctags               5.2-1
curl                7.10.2-1
curl-devel          7.10.2-1
cvs                 1.11.0-1
cygrunsrv           0.95-1
cygutils            1.1.3-1
cygwin              1.3.18-1
cygwin-doc          1.2-1
db2                 2.7.7-4
db3.1               3.1.17-2
dejagnu             20021217-2
diff                1.0-1
diffutils           2.8.1-1
doxygen             1.2.18-1
dpkg                1.10.4-2
ed                  0.2-1
emacs               21.2-11
emacs-X11           21.2-11
emacs-el            21.2-11
enscript            1.6.3-3
exim                4.12-2
expat               1.95.5-1
expect              20021218-1
fetchmail           6.2.0-3
figlet              2.2-1
file                3.37-1
fileutils           4.1-1
findutils           4.1.7-4
flex                2.5.4-2
fortune             1.8-2
fvwm                2.4.7-2
gawk                3.1.1-5
gcc                 3.2-3
gcc-mingw           20020817-4
gcc2                2.95.3-10
gdb                 20021218-1
gdbm                1.8.0-4
gettext             0.11.5-1
gettext-devel       0.11.5-1
ghostscript         7.05-2
ghostscript-base    7.05-2
ghostscript-x11     7.05-2
gnugo               3.2-1
gnupg               1.2.1-1
gperf               2.7.2-1
grep                2.5-1
groff               1.18.1-2
gsl                 1.3-1
guile               1.6.0-1
guile-devel         1.6.0-1
guile-doc           1.6.0-1
gzip                1.3.3-4
indent              2.2.8-1
inetutils           1.3.2-20
initscripts         0.9-1
irc                 20010101-1
jbigkit             1.2-6
jpeg                6b-7
keychain            1.9-1
less                378-1
lesstif             0.93.18-3
libPropList         0.10.1-3
libbz2_0            1.0.2-1
libbz2_1            1.0.2-2
libcharset1         1.8-2
libdb2              2.7.7-4
libdb2-devel        2.7.7-4
libdb3.1            3.1.17-2
libdb3.1-devel      3.1.17-2
libguile12          1.6.0-1
libguile14          1.5.6-5
libiconv            1.8-2
libiconv2           1.8-2
libintl             0.10.38-3
libintl1            0.10.40-1
libintl2            0.11.5-1
libkpathsea3        20020911-1
libltdl3            20030103-1
libncurses5         5.2-1
libncurses6         5.2-8
libpng              1.2.4-2
libpng10            1.0.14-2
libpng10-devel      1.0.14-2
libpng12            1.2.4-2
libpng12-devel      1.2.4-2
libpng2             1.0.12-1
libpopt0            1.6.4-4
libreadline4        4.1-2
libreadline5        4.3-2
libtool             20020705-1
libtool-devel       20030103-1
libtool-stable      1.4.3-1
libungif            4.1.0-2
libxerces-c21       2.1.0-1
libxml2             2.4.23-1
libxslt             1.0.13-1
lilypond            1.6.5-1
lilypond-doc        1.6.5-1
links               0.96-1
login               1.7-1
lynx                2.8.4-4
m4                  1.4-1
make                3.79.1-7
man                 1.5j-1
mc                  4.5.55-1
mingw-runtime       2.3-1
mktemp              1.4-1
mod_auth_mysql      1.11-1
mod_auth_ntsec      1.7-1
mod_dav             1.0.3-1.3.6-1
mod_php4            4.2.0-1
mod_ssl             2.8.8-1.3.24-1
more                2.11o-1
mt                  2.0.1-1
mutt                1.4-1
nano                1.1.10-1
nasm                0.98.35-1
ncftp               3.1.4-1
ncurses             5.2-8
newlib-man          20020801
openbox             0.99.1-3
opengl              1.1.0-6
openssh             3.5p1-2
openssl             0.9.6h-1
openssl-devel       0.9.6h-1
patch               2.5.8-2
pcre                3.7-1
perl                5.6.1-2
pine                4.44-4
pinfo               0.6.6p1-1
pkgconfig           0.14.0-1
popt                1.6.4-4
postgresql          7.3-1
procmail            3.22-7
procps              010801-2
python              2.2.2-4
rcs                 5.7-3
readline            4.3-2
robots              2.0-1
rsync               2.5.5-2
rxvt                2.7.9-4
sed                 4.0.5-1
sh-utils            2.0.15-3
sharutils           4.2.1-2
shutdown            1.2-2
squid               2.4.STABLE7-1
ssmtp               2.38.7-3
swig                1.3.16-1
sysvinit            2.84-2
tar                 1.13.25-1
tcltk               20021218-1
tcp_wrappers        7.6-1
tcsh                6.11.00-5
termcap             20020930-1
terminfo            5.2-3
tetex               20020911-1
tetex-base          20020911-1
tetex-beta          20020911-1
tetex-bin           20020911-1
tetex-devel         20020911-1
tetex-doc           20020911-1
tetex-extra         20020911-1
tetex-tiny          20020911-1
tetex-x11           20020911-1
texinfo             4.2-4
texmf               20020911-1
texmf-base          20020911-1
texmf-doc           20020911-1
texmf-extra         20020911-1
texmf-tiny          20020911-1
textutils           2.0.21-1
tidy                021202-1
tiff                3.5.7-1
time                1.7-1
ttcp                19980512-1
ucl                 1.01-1
units               1.77-1
unzip               5.50-1
upx                 1.24-1
vim                 6.1-2
w32api              2.1-1
wget                1.8.2-2
which               1.5-1
whois               4.6.1-1
x2x                 1.27-2
xerces-c            2.1.0-1
xerces-c-devel      2.1.0-1
xerces-c-doc        2.1.0-1
xinetd              2.3.9-1
xpm-nox             4.2.0-1
zip                 2.3-2
zlib                1.1.4-1
zsh                 4.0.6-2

Use -h to see help about each section
------------------------------
******************************
--
"Larry Wall wrote the original Perl in 1986-87, the same two successive years
he won the IOCCC. ...this was no fluke... Perl and Obfuscation are as insepar-
able as, say, camels and humps." --David Lowe

Eric De Mund <ead@ixian.com> | Ixian Systems, Inc. | 53 49 B2 23 AF 6C 20 81
http://www.ixian.com/ead/    | Mountain View, CA   | ED DD 4C 81 AA C9 D1 A5

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: why is hostname(1) output in UPPERCASE?
  2003-01-13  3:30 why is hostname(1) output in UPPERCASE? Eric De Mund
@ 2003-01-13  3:30 ` Thorsten Kampe
  2003-01-13  3:30   ` Corinna Vinschen
  0 siblings, 1 reply; 5+ messages in thread
From: Thorsten Kampe @ 2003-01-13  3:30 UTC (permalink / raw)
  To: cygwin

* Eric De Mund (03-01-10 08:24 +0100)
> Why is hostname(1) output in UPPERCASE, when the native Windows 2000
> hostname.exe outputs lowercase?

Cygwin hostname reads

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName]
"ComputerName"="<uppercase_name>"

while the native reads

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"ComputerName"="<lowercase_name>"


Thorsten
-- 
 Content-Type: text/explicit; charset=ISO-8859-666 (Parental Advisory)
 Content-Transfer-Warning: message contains innuendos not suited for
 children under the age of 18

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: why is hostname(1) output in UPPERCASE?
  2003-01-13  3:30 ` Thorsten Kampe
@ 2003-01-13  3:30   ` Corinna Vinschen
  2003-01-13  3:30     ` Eric De Mund
  0 siblings, 1 reply; 5+ messages in thread
From: Corinna Vinschen @ 2003-01-13  3:30 UTC (permalink / raw)
  To: cygwin

On Fri, Jan 10, 2003 at 11:21:10AM +0100, Thorsten Kampe wrote:
> * Eric De Mund (03-01-10 08:24 +0100)
> > Why is hostname(1) output in UPPERCASE, when the native Windows 2000
> > hostname.exe outputs lowercase?
> 
> Cygwin hostname reads
> 
> [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName]
> "ComputerName"="<uppercase_name>"
> 
> while the native reads
> 
> [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
> "ComputerName"="<lowercase_name>"

Fixed.

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: why is hostname(1) output in UPPERCASE?
@ 2003-01-13  3:30 Elfyn McBratney
  0 siblings, 0 replies; 5+ messages in thread
From: Elfyn McBratney @ 2003-01-13  3:30 UTC (permalink / raw)
  To: cygwin

 The computer name that hostname(1) returns is the one the Win32 API
returns.
 I'm not sure if this can be looked upon as a bug as cygwin gets the
 computer-name from win32 syscalls and hostname(1) gets the name from
 cygwin... Are you sure your computer name isn't set in capitals? Are you
 using a dns suffix?

 Elfyn
 elfyn@exposure.org.uk

 ----- Original Message -----
 From: "Eric De Mund" <ead@ixian.com>
 To: <cygwin@cygwin.com>
 Sent: Friday, January 10, 2003 7:24 AM
 Subject: why is hostname(1) output in UPPERCASE?


> Hello,

> Why is hostname(1) output in UPPERCASE, when the native Windows 2000
> hostname.exe outputs lowercase? Is this something I've unwittingly
> enabled? Regardless, shouldn't RFC 1178's suggestion be followed? (It
> states, "convention dictates that computer names appear all lowercase.")
> Or is this a sh-utils rather than a cygwin bug?
>
> Here's my current output:
>
>     ead@COWBERRY ~
>     $ hostname
>     COWBERRY
>
>     ead@COWBERRY ~
>     $ /cygdrive/c/WINNT/system32/hostname
>     cowberry
>
>     ead@COWBERRY ~
>     $
>
> This is in a brand new and complete 2003.01.09 download and install of
> cygwin on a Windows 2000 Professional SP2 machine (under both bash(1)
> and zsh(1)). See the output of "cygcheck --sysinfo", below, if
> necessary.
>
> Many thanks,
> Eric
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-01-10 18:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-13  3:30 why is hostname(1) output in UPPERCASE? Eric De Mund
2003-01-13  3:30 ` Thorsten Kampe
2003-01-13  3:30   ` Corinna Vinschen
2003-01-13  3:30     ` Eric De Mund
2003-01-13  3:30 Elfyn McBratney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).