I am running the head of bbdb with emacs 22.3.1. I had a .bbdb file that specified iso-8859-1 as coding system with a line that looked like: ;; -*-coding: iso-8859-1;-*- at the front. (I've been using this file since 1994 or so.) I have a bunch of names in my .bbdb with non-iso-8859-1 characters. I updated to recent bbdb from 2003ish a week or so ago, and started getting complaints on saving about how the coding system couldn't represent all the characaters and asking me to use mule-utf-8, which I allowed, but the file kept changing back to the iso-8859-1 line. Plus I got \203 in names, and things didn't look right.
Today I dug in, and found that bbdb has a short list of coding system it
allows, and for some reason utf-8 is written as utf-8-emacs, which 22.3
doesn't know about. With the following patch, I was able to hand-edit
the file to say utf-8 and then go take out a whole bunch of \203\204 on
some non-English names, and then relearn them from mail.
Today, it seems like bbdb files should just be utf-8, but I'm not that
clueful on i18n/l10n issues, and I don't know if that works ok for Asian
languages. My other system is in iso-2022-7bit, and it seems that is
crufty compared to utf-8 and I should switch it.
Index: lisp/bbdb.el
===================================================================
RCS file: /cvsroot/bbdb/bbdb/lisp/bbdb.el,v
retrieving revision 1.257
diff -u -p -r1.257 bbdb.el
--- lisp/bbdb.el 16 Mar 2008 23:05:03 -0000 1.257
+++ lisp/bbdb.el 31 Oct 2008 13:51:11 -0000
@@ -821,8 +821,8 @@ You can also set this to a function retu
;; emacs-mule would be better) with both Emacs 21 and XEmacs.
(defcustom bbdb-file-coding-system
(bbdb-eval-when (fboundp 'coding-system-p)
- (cond ((apply 'coding-system-p '(utf-8-emacs))
- 'utf-8-emacs)
+ (cond ((apply 'coding-system-p '(utf-8))
+ 'utf-8)
(t 'iso-8859-1)))
"Coding system used for reading and writing `bbdb-file'.
This should not be changed by users.
@@ -831,7 +831,7 @@ BBDB which was stored in a different cod
BBDB before changing this variable!"
:group 'bbdb
:type '(choice (const iso-8859-1)
- (const utf-8-emacs)
+ (const utf-8)
(const iso-2022-7bit)))
(defvar bbdb-suppress-changed-records-recording nil
pgpG0IDna5Z96.pgp
Description: PGP signature
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ [email protected] https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
