unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Angelo Graziosi <angelo.graziosi@alice.it>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: About frame title case [Windows]
Date: Sun, 7 May 2017 23:28:22 +0200	[thread overview]
Message-ID: <ad37638b-7403-252c-d456-be50c414579a@alice.it> (raw)
In-Reply-To: <83h90wehn2.fsf@gnu.org>

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.



  reply	other threads:[~2017-05-07 21:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-07 14:51 About frame title case [Windows] Angelo Graziosi
2017-05-07 16:49 ` Eli Zaretskii
2017-05-07 21:28   ` Angelo Graziosi [this message]
2017-05-08 17:00     ` Eli Zaretskii
2017-05-08 19:50       ` Angelo Graziosi
2017-05-09  2:32         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ad37638b-7403-252c-d456-be50c414579a@alice.it \
    --to=angelo.graziosi@alice.it \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).