Commit 186ecaf1 authored by Deniz Dogan's avatar Deniz Dogan
Browse files

* lisp/net/rcirc.el: Clean log filenames (Bug#7933).

(rcirc-log-write): Use convert-standard-filename.
(rcirc-log-filename-function): Documentation updates.
parent 0c74b838
2011-01-31 Deniz Dogan <deniz.a.m.dogan@gmail.com>
* net/rcirc.el: Clean log filenames (Bug#7933).
(rcirc-log-write): Use convert-standard-filename.
(rcirc-log-filename-function): Documentation updates.
2011-01-30 Jan Djärv <jan.h.d@swipnet.se>
 
* mail/emacsbug.el (report-emacs-bug-insert-to-mailer): Check
......
......@@ -1565,8 +1565,11 @@ return the filename, or nil if no logging is desired for this
session.
If the returned filename is absolute (`file-name-absolute-p'
returns true), then it is used as-is, otherwise the resulting
file is put into `rcirc-log-directory'."
returns t), then it is used as-is, otherwise the resulting file
is put into `rcirc-log-directory'.
The filename is then cleaned using `convert-standard-filename' to
guarantee valid filenames for the current OS."
:group 'rcirc
:type 'function)
......@@ -1591,7 +1594,9 @@ file is put into `rcirc-log-directory'."
Log data is written to `rcirc-log-directory', except for
log-files with absolute names (see `rcirc-log-filename-function')."
(dolist (cell rcirc-log-alist)
(let ((filename (expand-file-name (car cell) rcirc-log-directory))
(let ((filename (convert-standard-filename
(expand-file-name (car cell)
rcirc-log-directory)))
(coding-system-for-write 'utf-8))
(make-directory (file-name-directory filename) t)
(with-temp-buffer
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment