[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: [ANN] - ptools 1.1.1

Hal E. Fulton

8/24/2006 4:22:00 AM

Peña wrote:

> ah, maybe i should state my problem better, how about "i'd like to know if a file is a pure text file". how should i do that in ruby?

That depends on what you mean by a pure text file. :)

Are you assuming Unicode, ASCII, or what?


Hal


2 Answers

Xavier Noria

8/24/2006 7:53:00 AM

0

On Aug 24, 2006, at 6:21 AM, Hal Fulton wrote:

> Peña wrote:
>
>> ah, maybe i should state my problem better, how about "i'd like to
>> know if a file is a pure text file". how should i do that in ruby?
>
> That depends on what you mean by a pure text file. :)
>
> Are you assuming Unicode, ASCII, or what?

What is the heuristic used by Subversion for instance?

-- fxn




Xavier Noria

8/24/2006 7:56:00 AM

0

On Aug 24, 2006, at 9:52 AM, Xavier Noria wrote:

> On Aug 24, 2006, at 6:21 AM, Hal Fulton wrote:
>
>> Peña wrote:
>>
>>> ah, maybe i should state my problem better, how about "i'd like
>>> to know if a file is a pure text file". how should i do that in
>>> ruby?
>>
>> That depends on what you mean by a pure text file. :)
>>
>> Are you assuming Unicode, ASCII, or what?
>
> What is the heuristic used by Subversion for instance?

Ah, yes, it is in their FAQ:

http://subversion.tigris.org/faq.html#bi...

-- fxn