[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: etags and UTF-8 encoded file names (Re: ISO-8859-1 encoded file nam
Re: etags and UTF-8 encoded file names (Re: ISO-8859-1 encoded file names and UTF-8)
Wed, 2 Apr 2003 10:34:42 +0900 (JST)
SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)
In article <address@hidden>, Karl Eichwalder <address@hidden> writes:
> Now the next one: `tags-query-replace' does not work properly when file
> names are UTF-8 encoded. First run `etags *' on the files and then
> call `tags-query-replace'.
This is the same type of bug (but more difficult) as what I
posted to emacs-devel by the subjest "bad interaction with
C-x RET c and vc-cvs-registered".
A tag file contains file names plus parts of source code.
The former must be decoded by file-name-coding-system, but
the latter must be decoded by the coding system of each
file. It's very hard to decided a coding system for the
latter without actually reading the file.
Perhaps, a tag file must be read as raw-text (thus in a
unibyte buffer), and if one gives a non-ASCII TAGNAME to
`find-tag', it must be encoded by the
buffer-file-coding-system of the current buffer.