emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs-25 b6b47AF: Properly encode/decode base64Binary data in SOAP


From: Eli Zaretskii
Subject: Re: emacs-25 b6b47AF: Properly encode/decode base64Binary data in SOAP
Date: Mon, 14 Mar 2016 19:55:52 +0200

> From: Stefan Monnier <address@hidden>
> Date: Mon, 14 Mar 2016 08:39:06 -0400
> 
> > On the server side, debbugs.gnu.org, a perl script using SOAP::Lite is
> > responsible for encoding the attributes. IIUC, the internal package
> > SOAP::Serializer decides depending on the contents of a string, whether
> > it shall be xsd:base64Binary, or not. See:
> 
> >     $self->typelookup({
> >            'base64Binary' =>
> >               [10, sub {$_[0] =~ /[^\x09\x0a\x0d\x20-\x7f]/ }, 
> > 'as_base64Binary'],
> >     ...
> 
> So on the receiving side, debbugs.el should similarly check
> multibyteness of the string to decide what to do with it, I think.

??? The multibyteness of a string is an illusion created by Emacs, as
you well know.  There's nothing in the byte stream that is inherently
multibyte or unibyte.  The only thing that the multibyteness of the
string could tell us is what kind of processing did soap-client.el do
to produce the string, that's all.

So I'm unsure what you had in mind when you wrote this.  I'm probably
missing something, but what?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]