Mercurial > emacs
changeset 42551:19b398fd9146
(ldap-search-internal): Make the buffer unibyte.
Use buffer-string instead of buffer-substring for the whole buffer.
author | Pavel Janík <Pavel@Janik.cz> |
---|---|
date | Sat, 05 Jan 2002 18:42:52 +0000 |
parents | 57677c00b0af |
children | 27d9f14cc4af |
files | lisp/net/ldap.el |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/net/ldap.el Sat Jan 05 17:28:54 2002 +0000 +++ b/lisp/net/ldap.el Sat Jan 05 18:42:52 2002 +0000 @@ -1,6 +1,6 @@ ;;; ldap.el --- client interface to LDAP for Emacs -;; Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc. +;; Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc. ;; Author: Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch> ;; Maintainer: Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch> @@ -583,9 +583,10 @@ (save-excursion (set-buffer bufval) (erase-buffer) + (set-buffer-multibyte nil) (insert-file-contents-literally value) (delete-file value) - (setq value (buffer-substring (point-min) (point-max)))) + (setq value (buffer-string))) (setq record (cons (list name value) record)) (forward-line 1))