[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coding system of compressed PO files is not recognized

From: Kenichi Handa
Subject: Re: Coding system of compressed PO files is not recognized
Date: Thu, 04 May 2006 10:55:02 +0900
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

In article <address@hidden>, Richard Stallman <address@hidden> writes:

>     I don't understand how that solve the problem.  When
>     find-operation-coding-system is called, even if a buffer is
>     given, the major mode of the buffer is not yet decided.

> I am somewhat confused.  My understanding is that it recognizes the
> coding system for a PO file by calling a function that is special for
> PO files only.  Is that correct?


> Can find-operation-coding-system tell, given the buffer, that the file
> is a PO file?  I presume so.

No if buffer-file-name of the buffer doesn't match with
"\\.po[tx]?\\'\\|\\.po\\." (an entry in file-coding-system-alist).

First of all, po-mode is not included in Emacs.  Emacs
currently just provides a way to detect coding-system for PO

> What kind of test would you want to use?

If a buffer is given to find-operation-coding-system,
treating buffer-file-name of the buffer as a file name is
the natural thing.  And to make it work, we must set
buffer-file-name of the PO file buffer decoded from
test.po.gz to test.po just while callding

Kenichi Handa

reply via email to

[Prev in Thread] Current Thread [Next in Thread]