From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: master a539488: Always make a multibyte string for the frame title (bug#42904) Date: Sun, 23 Aug 2020 20:41:35 +0200 Message-ID: <87364dfbmo.fsf@gnus.org> References: <20200823171831.19233.37353@vcs0.savannah.gnu.org> <20200823171832.86B3620A10@vcs0.savannah.gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1016"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 23 20:42:15 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k9uwZ-00009J-Rh for ged-emacs-devel@m.gmane-mx.org; Sun, 23 Aug 2020 20:42:15 +0200 Original-Received: from localhost ([::1]:60850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k9uwY-00061H-Tu for ged-emacs-devel@m.gmane-mx.org; Sun, 23 Aug 2020 14:42:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56546) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9uw7-0005aF-32 for emacs-devel@gnu.org; Sun, 23 Aug 2020 14:41:47 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:38458) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9uw5-0007RF-EV for emacs-devel@gnu.org; Sun, 23 Aug 2020 14:41:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=2F33I9dZfTJC9ZsJjOXogvcz90KL42IC+GR2vMfvwc4=; b=awXjqedlIgzeqGXVAmD59GhTkK gzHqluwAwskNuT6iyo6YkbKjkI6jVbsOTGCpFBtzKNpAUvDc8es5aRGXAOZjADYV/cBJcilZEBP6e o/3jfLAJKYKF3hb14zWEuR1/aB4ygn8p9ZAerK7gjP7yQQ7XTtQDw2qqDVmuOFDp4Q18=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k9uvx-0003Lx-2O; Sun, 23 Aug 2020 20:41:42 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEXQzsuDfntaVlRC Pj01MTD///8Qp/69AAAAAWJLR0QF+G/pxwAAAAd0SU1FB+QIFxIoNjH6m/4AAAGiSURBVDjLrZNr musgCIZJpgsQTxcQMRsYdAWB/a9pAE2TzPw9tE9jffm4BAVARAprbmNhX4CC1/YJmgNTZHpaDUD0 e98k1QEiwPLctyQw7AIlWyAmeoKUccl0AwsM7xQOrTpYEBdMMANF6Vwt4AwFPBXxrAVWU+TNgHjc zR2s+LpZ8GnR85ZWKp5mgmS/LrBQX1TAJBuup6J64mKKzUGpVlUK4O6Zq1CynszratAq2iXXI8FK lVub7o0wvVThJSVaH283ukLYVdNLrFw+wegNuoqluQY1AYK2tuU5phvIqNzKd6Z6A1YFpVVVvwvd gS8HOArPfQexHECtohuIY5OyA6H+BJ0HaLQ/gTL9026gPEFXLu8bkBPETgA2IBO4wOa3SwBLLn0C e5IDT956lSgvFDHXPariTjoBt3HCe/zn/QPmUeMTsDRffsCpeEeNoch5XJYJUCK7X7VxCaMaA0lc cwMUEn6zg65xB+ctdHBUfyGhSJ+jFUnGK3yAYsdEpf4FuOthk6q/ARggA2Nw4skBk30wwBEtdVdc 9u6p8TKrh/9nP1b/luT10T57AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIwLTA4LTIzVDE4OjQwOjU0 KzAwOjAwM7M0rAAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMC0wOC0yM1QxODo0MDo1NCswMDowMELu jBAAAAAASUVORK5CYII= X-Now-Playing: Portishead's _Over 2_: "Over" In-Reply-To: <20200823171832.86B3620A10@vcs0.savannah.gnu.org> ("Mattias =?utf-8?Q?Engdeg=C3=A5rd=22's?= message of "Sun, 23 Aug 2020 13:18:32 -0400 (EDT)") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:254149 Archived-At: Mattias Engdeg=C3=A5rd writes: > Always make a multibyte string for the frame title (bug#42904) > > * src/xdisp.c (gui_consider_frame_title): Multibyte-encode any raw > bytes in the title, and then pass a multibyte string to the back-end > for use as a frame title. This cuts down a little on the rubbish > shown when raw bytes sneak in by mistake (as part of the buffer name, > for instance). This is giving me some compilation warnings on Debian: xdisp.c: In function =E2=80=98gui_consider_frame_title=E2=80=99: xdisp.c:12571:31: warning: pointer targets in passing argument 1 of =E2=80= =98str_as_multibyte=E2=80=99 differ in signedness [-Wpointer-sign] 12571 | len =3D str_as_multibyte (title, mode_line_noprop_buf_end - t= itle, | ^~~~~ | | | char * In file included from dispextern.h:25, from composite.h:29, from xdisp.c:441: character.h:226:36: note: expected =E2=80=98unsigned char *=E2=80=99 but ar= gument is of type =E2=80=98char *=E2=80=99 226 | CHAR_STRING (int c, unsigned char *p) | ~~~~~~~~~~~~~~~^ --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no