[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Mac OS X: problems adding files with umlauts

From: Ulrich Eckhardt <eckhardt_at_satorlaser.com>
Date: 2006-07-07 10:19:11 CEST

On Friday 07 July 2006 09:02, Thomas Singer wrote:
> > That said, it is possible to write file names containing bytes that can't
> > decode as UTF-8.
>
> I can't believe that. Could you please give an reproducible example?

C++ code:

#include <fstream>
int main() {
  // the value 0xff and 0xfe must not occur in UTF-8 text
  char const filename[] = { 'i','n','v','a','l','i','d',0xff,0xfe,'\0' };
  std::ofstream out(filename);
  out << "aha!\n";
}

The thing is that, as Wilfredo said and whose attribution you snipped,
filenames are UTF-8 _by_ _convention_ and nothing enforces this.

Uli

****************************************************
Visit our website at <http://www.domino-printing.com/>
****************************************************
This Email and any files transmitted with it are intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any reading, redistribution, disclosure or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you are not the intended recipient please contact the sender immediately and delete the material from your computer.

E-mail may be susceptible to data corruption, interception, viruses and unauthorised amendment and Domino UK Limited does not accept liability for any such corruption, interception, viruses or amendment or their consequences.
****************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jul 7 10:21:41 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.