fopen a special characterfile on vfat.

devendra.aaru devendra.aaru@gmail.com
Tue Apr 17 14:30:00 GMT 2012


On Tue, Apr 17, 2012 at 10:20 AM, Thomas Schwinge
<thomas@codesourcery.com> wrote:
> Hi!
>
> On Tue, 17 Apr 2012 09:32:34 -0400, "devendra.aaru" <devendra.aaru@gmail.com> wrote:
>> i am facing a strange situation where fopen fails on a vfat file
>> system , the same works for the ext2 file system.
>>
>> the file name is 0x1212_0x2121_2001-2-2T4:3:2Z
>>
>> did i missed anything?
>>
>> i have done fopen(filename, "w");
>> it says invalid argument at perror.
>
> Without checking any further, I'm quite sure that VFAT does not allow
> colons in file names, which probably is what the kernel is telling you.
>
Hi Thomas,
   You are correct. so there is no way to open files with special
chars in vfat? but with ext2 there are no such kind of restrictions.
>
> Grüße,
>  Thomas
Thanks,
dev.



More information about the Libc-help mailing list