mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-30 15:00:21 +02:00
open-socket-for-url returns port in latin1 encoding
* module/web/client.scm (open-socket-for-uri): Set port encoding to latin1, to see if this fixes Nalin Garut's problems.
This commit is contained in:
parent
ecfb148137
commit
072624134b
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@
|
||||||
(else (symbol->string (uri-scheme uri)))))))
|
(else (symbol->string (uri-scheme uri)))))))
|
||||||
(s (socket (addrinfo:fam ai) (addrinfo:socktype ai)
|
(s (socket (addrinfo:fam ai) (addrinfo:socktype ai)
|
||||||
(addrinfo:protocol ai))))
|
(addrinfo:protocol ai))))
|
||||||
|
(set-port-encoding! s "ISO-8859-1")
|
||||||
(connect s (addrinfo:addr ai))
|
(connect s (addrinfo:addr ai))
|
||||||
;; Buffer input and output on this port.
|
;; Buffer input and output on this port.
|
||||||
(setvbuf s _IOFBF)
|
(setvbuf s _IOFBF)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue