[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/xml-rpc fa2aee2be9 05/64: (xml-rpc-request-process-buffer)
From: |
Stefan Kangas |
Subject: |
[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. |
Date: |
Fri, 31 Dec 2021 20:10:55 -0500 (EST) |
branch: elpa/xml-rpc
commit fa2aee2be9bd740951dda06d10e40ec1a5a99e35
Author: Mark A. Hershberger <mah@everybody.org>
Commit: Mark A. Hershberger <mah@everybody.org>
(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.
---
xml-rpc.el | 25 ++++++++++++++++---------
1 file changed, 16 insertions(+), 9 deletions(-)
diff --git a/xml-rpc.el b/xml-rpc.el
index 2770b3e618..3c52a3a042 100644
--- a/xml-rpc.el
+++ b/xml-rpc.el
@@ -233,7 +233,7 @@ interpreting and simplifying it while retaining its
structure."
(cond
;; Base64
((eq valtype 'base64)
- (rfc2047-decode "utf-8" "B" valvalue))
+ (rfc2047-decode "utf-8" ?B valvalue))
;; Boolean
((eq valtype 'boolean)
(xml-rpc-string-to-boolean valvalue))
@@ -256,13 +256,15 @@ interpreting and simplifying it while retaining its
structure."
;; Fault
((eq valtype 'fault)
(let* ((struct (xml-rpc-xml-list-to-value (list valvalue)))
- (fault-string (cdr (assoc "faultString" struct)))
- (fault-code (cdr (assoc "faultCode" struct))))
- (list 'fault fault-code fault-string)))
-
- ;; Array
- ((eq valtype 'array)
- (mapcar (lambda (arrval)
+ (fault-string (cdr (assoc "faultString" struct)))
+ (fault-code (cdr (assoc "faultCode" struct))))
+ (list 'fault fault-code fault-string)))
+ ;; DateTime
+ ((eq valtype 'dateTime\.iso8601)
+ valvalue)
+ ;; Array
+ ((eq valtype 'array)
+ (mapcar (lambda (arrval)
(xml-rpc-xml-list-to-value (list arrval)))
(cddr valvalue)))))
((xml-rpc-caddar-safe xml-list))))
@@ -519,7 +521,12 @@ or nil if called with ASYNC-CALLBACK-FUNCTION."
(search-forward "\n---- Error was: ----\n")))
(and errstart
(buffer-substring errstart (point-max)))))
-
+
+ ;; Maybe they just gave us an the XML w/o PI?
+ ((search-forward "<methodResponse>" nil t)
+ (xml-rpc-clean (xml-parse-region (match-beginning 0)
+ (point-max))))
+
;; Valid HTTP status
(t
(int-to-string status)))))
- [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 <=
- [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, 2021/12/31
- [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