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/

Reply via email to