[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/xml-rpc 8ee416cb76 43/64: Return a unibyte string so that
From: |
Stefan Kangas |
Subject: |
[nongnu] elpa/xml-rpc 8ee416cb76 43/64: Return a unibyte string so that url.el doesn't think it's the |
Date: |
Fri, 31 Dec 2021 20:11:08 -0500 (EST) |
branch: elpa/xml-rpc
commit 8ee416cb7644eef4ca8edda5ea79b1c670555ad0
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Return a unibyte string so that url.el doesn't think it's the
wrong length.
Otherwise Emacsen after 25.0 won't be able to handle utf-8 data.
---
xml-rpc.el | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/xml-rpc.el b/xml-rpc.el
index 282a5d2f34..6d3334db46 100644
--- a/xml-rpc.el
+++ b/xml-rpc.el
@@ -570,15 +570,16 @@ or nil if called with ASYNC-CALLBACK-FUNCTION."
(let ((url-request-method "POST")
(url-package-name "xml-rpc.el")
(url-package-version xml-rpc-version)
- (url-request-data (concat "<?xml version=\"1.0\""
- " encoding=\"UTF-8\"?>\n"
- (with-temp-buffer
- (xml-print xml)
- (when xml-rpc-allow-unicode-string
- (encode-coding-region
- (point-min) (point-max) 'utf-8))
- (buffer-string))
- "\n"))
+ (url-request-data
+ (concat "<?xml version=\"1.0\""
+ " encoding=\"UTF-8\"?>\n"
+ (with-temp-buffer
+ (xml-print xml)
+ (if xml-rpc-allow-unicode-string
+ (string-as-unibyte
+ (encode-coding-string (buffer-string) 'utf-8))
+ (buffer-string)))
+ "\n"))
(url-mime-charset-string "utf-8;q=1, iso-8859-1;q=0.5")
(url-request-coding-system xml-rpc-use-coding-system)
(url-http-attempt-keepalives t)
- [nongnu] branch elpa/xml-rpc created (now 8020ccd176), Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 6bb1682468 01/64: Initial commit, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc fa2aee2be9 05/64: (xml-rpc-request-process-buffer): Make regex less picky to avoid some problems with CVS Emacs. (xml-rpc-xml-list-to-value): Take away dependency on rfc2047.el. (xml-rpc-base64-decode-unicode): New variable., Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc ba97dad421 08/64: (xml-rpc-allow-unicode-string): New setting to toggle UTF-8-ability before shipping to server. (unless): Use Emacs23's xml-print if we're running in Emacs22., Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 595b04054b 03/64: reorg & capability update, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc d8d2883b52 06/64: (xml-rpc-value-structp, xml-rpc-value-to-xml-list): Apply patch from Vitaly Mayatskikh <address@hidden> to add support for more complex struct types. Add xml-rpc patch from trac-wiki-mode (http://www.meadowy.org/~gotoh/projects/trac-wiki/), Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc ed942fd4f8 20/64: fix new warnings that pop up courtesy of Leo, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc aa0953b2d4 32/64: Improve detection of structs with a patch from Jos'h Fuller, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 8ee416cb76 43/64: Return a unibyte string so that url.el doesn't think it's the,
Stefan Kangas <=
- [nongnu] elpa/xml-rpc 435c8a6205 45/64: Add .gitignore, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 402d613cd8 46/64: Bump version number to match tag, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 3346027583 13/64: update timestamps, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 3e329a3657 19/64: Update copyright to GPL 3, add installation instructions., Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 750fd4fb15 17/64: On functions that are conditionally defined, (xml-debug-print, timezone-parse-date), take them out of the eval-when-compile block so that they're compiled into .elc files. (url): Make sure url-http is loaded to avoid warnings later about let-bound variables. (xml-rpc-value-arrayp): Also verify that it is not a dateTime value., Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc c8b5e022cd 23/64: Apply Leo's patches, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 0bdeb7d339 26/64: fix problem with debugging & another extra var xemacs found, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 8d06f89027 35/64: xml-rpc.el: add xml-rpc-request-extra-headers variable, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 822f5bc020 34/64: Incorporate changes from LaTeX Track Changes, Stefan Kangas, 2021/12/31
- [nongnu] elpa/xml-rpc 80809710fc 31/64: Integrate patches from Stefan Kangas: * add support for i8 * fix byte compile warnings, Stefan Kangas, 2021/12/31