From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: About frame title case [Windows] Date: Sun, 7 May 2017 23:28:22 +0200 Message-ID: References: <52f19cb7-0551-3221-017d-688b6c42e104@alice.it> <83h90wehn2.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1494192568 29017 195.159.176.226 (7 May 2017 21:29:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 May 2017 21:29:28 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 07 23:29:21 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d7Tjx-0007LG-Dm for ged-emacs-devel@m.gmane.org; Sun, 07 May 2017 23:29:17 +0200 Original-Received: from localhost ([::1]:56776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7Tk1-0003Q2-Dn for ged-emacs-devel@m.gmane.org; Sun, 07 May 2017 17:29:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46768) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7TjQ-0003Pv-WE for emacs-devel@gnu.org; Sun, 07 May 2017 17:28:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7TjN-0007Ad-SY for emacs-devel@gnu.org; Sun, 07 May 2017 17:28:44 -0400 Original-Received: from smtp202.alice.it ([82.57.200.98]:42148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7TjN-00079o-GW; Sun, 07 May 2017 17:28:41 -0400 Original-Received: from [192.168.1.102] (79.35.224.245) by smtp202.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 590C880602F717DE; Sun, 7 May 2017 23:28:35 +0200 In-Reply-To: <83h90wehn2.fsf@gnu.org> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.98 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214685 Archived-At: 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.