X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Mon, 01 Mar 2010 21:35:52 +1000 From: Jason Hood User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100216 Thunderbird/3.0.2 MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: Bug in findfirst/findnext: mangles certain characters. References: <2PydnQe72P4H_BrWnZ2dnUVZ_vmdnZ2d AT giganews DOT com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit NNTP-Posting-Host: $$5ennlldnsg.news.x-privat.org Message-ID: <4b8ba6a1@news.x-privat.org> Organization: X-Privat.Org NNTP Server - http://www.x-privat.org Lines: 13 X-Authenticated-User: $$np02fmijtvj-bfao$k3 X-Complaints-To: abuse AT x-privat DOT org Bytes: 1606 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On 28/02/2010 18:43, Robbie Hatley wrote: > Try renaming THAT file using findfirst/findnext and rename(). > It won't work. (Findfirst will turn "Ěn-Ít" to "In-It", > for one thing. rename() will then complain "no such file".) The problem is not with findfirst, but with Windows. It is /Windows/ that is renaming the file, so there is nothing that findfirst can do. The same problem even happens with Win32 console programs, when switching the file APIs to OEM. The ideal solution is to use a Windows Unicode program, so you might want to have a look at MinGW. Jason.