X-Spam-Check-By: sourceware.org
Date: Fri, 17 Mar 2006 20:06:13 -0500 (EST)
From: Igor Peshansky <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: "Paul J. Lucas" <pauljlucas@mac.com>
cc: cygwin@cygwin.com
Subject: Re: fopen with UTF-8 chars in filenames
In-Reply-To: <Pine.LNX.4.63.0603171642220.23743@vgfl.cnhywyhpnf.bet>
Message-ID: <Pine.GSO.4.63.0603172002560.10114@access1.cims.nyu.edu>
References: <Pine.LNX.4.63.0603141507100.23743@vgfl.cnhywyhpnf.bet>   <dv7oht$t87$1@sea.gmane.org> <20060315010359.GD15036@trixie.casa.cgf.cx>   <dvchcb$p9k$1@sea.gmane.org> <20060316205210.GD14672@trixie.casa.cgf.cx>   <Pine.LNX.4.63.0603171314380.23743@vgfl.cnhywyhpnf.bet>   <20060317212225.GA31105@trixie.casa.cgf.cx> <Pine.LNX.4.63.0603171642220.23743@vgfl.cnhywyhpnf.bet>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Fri, 17 Mar 2006, Paul J. Lucas wrote:

> On Fri, 17 Mar 2006, Christopher Faylor wrote:
>
> > Cygwin doesn't provide _wfopen.
>
> 1. I install Cygwin.
> 2. It's in stdio.h that gets installed as part of the Cygwin install.

No, actually it's in stdio.h that's part of MinGW (and is installed as
part of Cygwin only because Cygwin's gcc has a built-in MinGW
cross-compiler).

> Therefore, as far as I'm concerned, it's in Cygwin.

It's in MinGW.  It's not supported by the Cygwin community.  The program
you build with it is not a Cygwin program.

> > So, if you are using _wfopen you stopped using Cygwin, then, too, possibly
> > using -mno-cygwin.
>
> As it happens, I am suppliying -mno-cygwin.

So you're building a pure Windows executable.

> > "I am trying to do what this person did <INSERT URL HERE> and I get an
> > unreferenced error!!!!"
>
> Then why does it work for me?

Because you're that person. :-)  Seriously, you're building a pure Windows
executable that uses MSVCRT for its C runtime.  If someone attempted to
build a Cygwin program that used wfopen, they would fail (with the above
error).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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/

