mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-18 18:05:07 +00:00
(ldap-search-internal): Make the buffer unibyte.
Use buffer-string instead of buffer-substring for the whole buffer.
This commit is contained in:
parent
bd635c0e44
commit
590a6e6c11
@ -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 @@ an alist of attribute/value pairs."
|
||||
(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))
|
||||
|
Loading…
Reference in New Issue
Block a user