* Re: master a539488: Always make a multibyte string for the frame title (bug#42904)
[not found] ` <20200823171832.86B3620A10@vcs0.savannah.gnu.org>
@ 2020-08-23 18:41 ` Lars Ingebrigtsen
2020-08-23 18:54 ` Eli Zaretskii
0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2020-08-23 18:41 UTC (permalink / raw)
To: emacs-devel; +Cc: Mattias Engdegård
Mattias Engdegård <mattiase@savannah.gnu.org> 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 ‘gui_consider_frame_title’:
xdisp.c:12571:31: warning: pointer targets in passing argument 1 of ‘str_as_multibyte’ differ in signedness [-Wpointer-sign]
12571 | len = str_as_multibyte (title, mode_line_noprop_buf_end - title,
| ^~~~~
| |
| char *
In file included from dispextern.h:25,
from composite.h:29,
from xdisp.c:441:
character.h:226:36: note: expected ‘unsigned char *’ but argument is of type ‘char *’
226 | CHAR_STRING (int c, unsigned char *p)
| ~~~~~~~~~~~~~~~^
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: master a539488: Always make a multibyte string for the frame title (bug#42904)
2020-08-23 18:41 ` master a539488: Always make a multibyte string for the frame title (bug#42904) Lars Ingebrigtsen
@ 2020-08-23 18:54 ` Eli Zaretskii
2020-08-23 18:57 ` Mattias Engdegård
2020-08-23 19:01 ` Lars Ingebrigtsen
0 siblings, 2 replies; 7+ messages in thread
From: Eli Zaretskii @ 2020-08-23 18:54 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: mattiase, emacs-devel
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Sun, 23 Aug 2020 20:41:35 +0200
> Cc: Mattias Engdegård <mattiase@acm.org>
>
> This is giving me some compilation warnings on Debian:
>
> xdisp.c: In function ‘gui_consider_frame_title’:
> xdisp.c:12571:31: warning: pointer targets in passing argument 1 of ‘str_as_multibyte’ differ in signedness [-Wpointer-sign]
> 12571 | len = str_as_multibyte (title, mode_line_noprop_buf_end - title,
> | ^~~~~
> | |
> | char *
> In file included from dispextern.h:25,
> from composite.h:29,
> from xdisp.c:441:
> character.h:226:36: note: expected ‘unsigned char *’ but argument is of type ‘char *’
> 226 | CHAR_STRING (int c, unsigned char *p)
> | ~~~~~~~~~~~~~~~^
Silly compiler. Please try again, I hope I fixed this.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: master a539488: Always make a multibyte string for the frame title (bug#42904)
2020-08-23 18:54 ` Eli Zaretskii
@ 2020-08-23 18:57 ` Mattias Engdegård
2020-08-23 19:01 ` Lars Ingebrigtsen
1 sibling, 0 replies; 7+ messages in thread
From: Mattias Engdegård @ 2020-08-23 18:57 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Lars Ingebrigtsen, emacs-devel
23 aug. 2020 kl. 20.54 skrev Eli Zaretskii <eliz@gnu.org>:
> Silly compiler. Please try again, I hope I fixed this.
Sorry about that, and thanks for fixing it!
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: master a539488: Always make a multibyte string for the frame title (bug#42904)
2020-08-23 18:54 ` Eli Zaretskii
2020-08-23 18:57 ` Mattias Engdegård
@ 2020-08-23 19:01 ` Lars Ingebrigtsen
2020-08-23 19:11 ` Eli Zaretskii
1 sibling, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2020-08-23 19:01 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: mattiase, emacs-devel
Eli Zaretskii <eliz@gnu.org> writes:
> Silly compiler. Please try again, I hope I fixed this.
Now the warnings are... slightly different? :-)
xdisp.c: In function ‘display_mode_element’:
xdisp.c:25643:36: warning: pointer targets in passing argument 1 of ‘multibyte_chars_in_text’ differ in signedness [-Wpointer-sign]
25643 | if (multibyte_chars_in_text (spec, nbytes) != nbytes)
| ^~~~
| |
| const char *
In file included from xdisp.c:439:
lisp.h:3581:43: note: expected ‘const unsigned char *’ but argument is of type ‘const char *’
3581 | extern ptrdiff_t multibyte_chars_in_text (const unsigned char *, ptrdiff_t);
| ^~~~~~~~~~~~~~~~~~~~~
xdisp.c: In function ‘decode_mode_spec_coding’:
xdisp.c:26264:62: warning: pointer targets in passing argument 2 of ‘CHAR_STRING’ differ in signedness [-Wpointer-sign]
26264 | buf += CHAR_STRING (XFIXNAT (CODING_ATTR_MNEMONIC (attrs)), buf);
| ^~~
| |
| char *
In file included from dispextern.h:25,
from composite.h:29,
from xdisp.c:441:
character.h:226:36: note: expected ‘unsigned char *’ but argument is of type ‘char *’
226 | CHAR_STRING (int c, unsigned char *p)
| ~~~~~~~~~~~~~~~^
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: master a539488: Always make a multibyte string for the frame title (bug#42904)
2020-08-23 19:01 ` Lars Ingebrigtsen
@ 2020-08-23 19:11 ` Eli Zaretskii
2020-08-23 19:48 ` Lars Ingebrigtsen
0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2020-08-23 19:11 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: mattiase, emacs-devel
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: emacs-devel@gnu.org, mattiase@acm.org
> Date: Sun, 23 Aug 2020 21:01:57 +0200
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > Silly compiler. Please try again, I hope I fixed this.
>
> Now the warnings are... slightly different? :-)
That's my changes, not those by Mattias. Hopefully fixed now.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: master a539488: Always make a multibyte string for the frame title (bug#42904)
2020-08-23 19:11 ` Eli Zaretskii
@ 2020-08-23 19:48 ` Lars Ingebrigtsen
2020-08-23 20:01 ` Eli Zaretskii
0 siblings, 1 reply; 7+ messages in thread
From: Lars Ingebrigtsen @ 2020-08-23 19:48 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: mattiase, emacs-devel
Eli Zaretskii <eliz@gnu.org> writes:
> That's my changes, not those by Mattias. Hopefully fixed now.
Yup, no warnings now.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: master a539488: Always make a multibyte string for the frame title (bug#42904)
2020-08-23 19:48 ` Lars Ingebrigtsen
@ 2020-08-23 20:01 ` Eli Zaretskii
0 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2020-08-23 20:01 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: mattiase, emacs-devel
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: emacs-devel@gnu.org, mattiase@acm.org
> Date: Sun, 23 Aug 2020 21:48:17 +0200
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > That's my changes, not those by Mattias. Hopefully fixed now.
>
> Yup, no warnings now.
Thanks for testing.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-08-23 20:01 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20200823171831.19233.37353@vcs0.savannah.gnu.org>
[not found] ` <20200823171832.86B3620A10@vcs0.savannah.gnu.org>
2020-08-23 18:41 ` master a539488: Always make a multibyte string for the frame title (bug#42904) Lars Ingebrigtsen
2020-08-23 18:54 ` Eli Zaretskii
2020-08-23 18:57 ` Mattias Engdegård
2020-08-23 19:01 ` Lars Ingebrigtsen
2020-08-23 19:11 ` Eli Zaretskii
2020-08-23 19:48 ` Lars Ingebrigtsen
2020-08-23 20:01 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.