aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2015-01-28 01:03:44 -0300
committerFabián Ezequiel Gallina2015-01-28 01:03:44 -0300
commitb0edd7c69d88f245981a05e2333b09e3171d4e6f (patch)
treeb097d4b6572f7300acdcb9461e72009b2d7bdebf /lisp
parentf4fcb10303e21d4a0526e070f7951b789c781b9f (diff)
parentb544ab561fcb575790c963a2eda51524fa366409 (diff)
downloademacs-b0edd7c69d88f245981a05e2333b09e3171d4e6f.tar.gz
emacs-b0edd7c69d88f245981a05e2333b09e3171d4e6f.zip
Merge from origin/emacs-24
b544ab5 Fix return value of vertical-motion at ZV (Bug#19553) 1f179ea Fix encoding of I/O in net-utils.el for MS-Windows. (Bug#19458) 70f298f Fix the description of -nl in --help text. (Bug#19542)
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/net/net-utils.el20
2 files changed, 24 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 570e3e248cc..1f356a00217 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12015-01-09 Eli Zaretskii <eliz@gnu.org>
2
3 * net/net-utils.el (net-utils-run-program, net-utils-run-simple):
4 On MS-Windows, bind coding-system-for-read to the console output
5 codepage. (Bug#19458)
6
12015-01-04 Dmitry Gutov <dgutov@yandex.ru> 72015-01-04 Dmitry Gutov <dgutov@yandex.ru>
2 8
3 Unbreak `mouse-action' property in text buttons. 9 Unbreak `mouse-action' property in text buttons.
diff --git a/lisp/net/net-utils.el b/lisp/net/net-utils.el
index 28aa43117da..ebcbc714ffb 100644
--- a/lisp/net/net-utils.el
+++ b/lisp/net/net-utils.el
@@ -328,7 +328,15 @@ This variable is only used if the variable
328 328
329(defun net-utils-run-program (name header program args) 329(defun net-utils-run-program (name header program args)
330 "Run a network information program." 330 "Run a network information program."
331 (let ((buf (get-buffer-create (concat "*" name "*")))) 331 (let ((buf (get-buffer-create (concat "*" name "*")))
332 (coding-system-for-read
333 ;; MS-Windows versions of network utilities output text
334 ;; encoded in the console (a.k.a. "OEM") codepage, which is
335 ;; different from the default system (a.k.a. "ANSI")
336 ;; codepage.
337 (if (eq system-type 'windows-nt)
338 (intern (format "cp%d" (w32-get-console-output-codepage)))
339 coding-system-for-read)))
332 (set-buffer buf) 340 (set-buffer buf)
333 (erase-buffer) 341 (erase-buffer)
334 (insert header "\n") 342 (insert header "\n")
@@ -352,7 +360,15 @@ This variable is only used if the variable
352 (when proc 360 (when proc
353 (set-process-filter proc nil) 361 (set-process-filter proc nil)
354 (delete-process proc))) 362 (delete-process proc)))
355 (let ((inhibit-read-only t)) 363 (let ((inhibit-read-only t)
364 (coding-system-for-read
365 ;; MS-Windows versions of network utilities output text
366 ;; encoded in the console (a.k.a. "OEM") codepage, which is
367 ;; different from the default system (a.k.a. "ANSI")
368 ;; codepage.
369 (if (eq system-type 'windows-nt)
370 (intern (format "cp%d" (w32-get-console-output-codepage)))
371 coding-system-for-read)))
356 (erase-buffer)) 372 (erase-buffer))
357 (net-utils-mode) 373 (net-utils-mode)
358 (setq-local net-utils--revert-cmd 374 (setq-local net-utils--revert-cmd