From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/10035 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.user Subject: Re: troubles after have changed locale ISO-8859-15 to utf8 Date: Mon, 10 Dec 2007 20:03:00 +0900 Organization: Emacsen advocacy group Message-ID: References: <1193915776.840103.125140@k79g2000hse.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1197286826 18730 80.91.229.12 (10 Dec 2007 11:40:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Dec 2007 11:40:26 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Mon Dec 10 12:40:35 2007 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J1gzy-0004hY-Ee for gegu-info-gnus-english@m.gmane.org; Mon, 10 Dec 2007 12:40:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J1gzg-000397-Op for gegu-info-gnus-english@m.gmane.org; Mon, 10 Dec 2007 06:40:16 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 36 Original-X-Trace: individual.net NfKJe+0X3G2ajsLXerIr/gBqjFyYS2nz8bZK8dJxWMN9iZUKI= Cancel-Lock: sha1:v8/bMr2HsaQEVOssvpafqtmDA2s= sha1:1WsAes7XmekdBwevTP+D+ZOqU7M= X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Original-Xref: shelby.stanford.edu gnu.emacs.gnus:80245 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:10035 Archived-At: >>>>> francois.lagarde@gmail.com wrote: > I think that I have still some problems with my locales. When I enter > a folder name (interactive prompt i.e: keyboard) accents are fine, but > when I use the format-time-string command to generate the month to > where the mails has to be copied, the created folder doesn't have > correct accents. This might be due to `locale-coding-system'. I learned right now that the value has to be the same as the one that the locale uses and it might not be automatically set properly. > that's really complicated... I think that it was a bad idea to switch > to UTF8... >>>>> You wrote in the beginning of the thread: > When I send mails, I keep a copy of the message in a file in a folder > given by: > (concat "nnml:gposted." > (format-time-string "%Y") > ".news-" > (format-time-string "%m-%B-%Y")) How about changing it into the following? (let ((system-time-locale "fr_FR.utf8") (locale-coding-system 'utf-8)) (format-time-string "nnml:gposted.%Y.news-%m-%B-%Y")) The locale name "fr_FR.utf8" might need to be modified according to your system, or binding of `system-time-locale' might be needless. Anyway, try evaluating such forms in the *scratch* buffer (type `C-j' at the end of the last line). I got: "nnml:gposted.2007.news-12-décembre-2007"