[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: About frame title case [Windows]
From: |
Angelo Graziosi |
Subject: |
Re: About frame title case [Windows] |
Date: |
Sun, 7 May 2017 23:28:22 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 |
Il 07/05/2017 18:49, Eli Zaretskii ha scritto:
Emacs doesn't up-case the system-name, it uses the exact string we get
from the system API we use to get the machine name (GetComputerName).
Looking at src/w32.c it seems you are implementing (sys_)gethostname()
which, if I understood, is also used on other *nix systems.
gethostname() seems the right routine because on MSYS2 shell I get:
$ env | grep -i foobar
HOSTNAME=FooBar
COMPUTERNAME=FOOBAR
or, if you prefer,
$ echo $COMPUTERNAME $HOSTNAME
FOOBAR FooBar
I wonder what are the "contraindications" in using gethostname() from
https://msdn.microsoft.com/en-us/library/windows/desktop/ms738527(v=vs.85).aspx
After all, if Start / Setting / Systems / Info shows the PC name in the
right case, a way should exist to do the same in Emacs.
In any case this is only a little noise.
Thanks,
Angelo.