unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* String handling in xwidget primitives
@ 2016-01-29 19:16 Eli Zaretskii
  2016-01-29 22:57 ` Paul Eggert
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2016-01-29 19:16 UTC (permalink / raw)
  To: joakim; +Cc: emacs-devel

The primitives xwidget-webkit-goto-uri and
xwidget-webkit-execute-script accept Lisp strings as arguments and
pass their data unaltered to the underlying GTK functions.  I think we
need to encode these strings first, but I cannot figure out which
encoding should be used.  Is it UTF-8 or something locale-dependent?
xwidget-webkit-goto-uri accepts file names (AFAIU), so perhaps it
should encode the argument as we do with file names?

Also, random documents on the Internet claim JS scripts should have a
BOM if they are in UTF-8, is that correct?

xwidget-webkit-get-title uses build_string to create a Lisp string
which it returns, but build_string is not really appropriate for
non-ASCII strings.  In what encoding does webkit_web_view_get_title
return its value?  Is that UTF-8, or could that be something else?  (I
cannot find any documentation of that.)

In any case, what we have now is incorrect, and can only work by luck.
We ought to fix that before the release.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-01-30  7:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <83bn84xn2p.fsf@gnu.org>
     [not found] ` <m3lh78rxwe.fsf@exodia.verona.se>
2016-01-29 20:25   ` String handling in xwidget primitives Eli Zaretskii
2016-01-29 19:16 Eli Zaretskii
2016-01-29 22:57 ` Paul Eggert
2016-01-30  7:57   ` Eli Zaretskii

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