www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Thu, 2 Apr 2009 15:46:37 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: [1.7] codepage:utf removal and python |
Message-ID: | <20090402134637.GW12738@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <49D3EB8D DOT 3040802 AT acm DOT org> <20090402084037 DOT GA15006 AT calimero DOT vinschen DOT de> <20090402124652 DOT GA2480 AT tishler DOT net> <20090402132618 DOT GA18152 AT calimero DOT vinschen DOT de> |
MIME-Version: | 1.0 |
In-Reply-To: | <20090402132618.GA18152@calimero.vinschen.de> |
User-Agent: | Mutt/1.5.19 (2009-02-20) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On Apr 2 15:26, Corinna Vinschen wrote: > On Apr 2 08:46, Jason Tishler wrote: > > On Thu, Apr 02, 2009 at 10:40:38AM +0200, Corinna Vinschen wrote: > > > Jason, can you shed some light on this problem? > > > > Unfortunately, I'm locale challenged... > > export LANG="en_US.UTF-8" Btw., it's really not tricky to create a filename with special characters: #include <stdio.h> #include <fcntl.h> #include <locale.h> #include <wchar.h> int main() { wchar_t w_fname[] = { 'q', 'q', 0x20ac /* euro sign */, 0 }; char fname[32]; int fd; setlocale (LC_ALL, "en_US.UTF-8"); wcstombs (fname, w_fname, 32); fd = open (fname, O_RDWR | O_CREAT | O_TRUNC, 0644); if (fd >= 0) close (fd); else perror ("open"); return 0; } Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |