|
|
|
#9 |
|
Messages: n/a
Hébergeur: |
> Windows ruby does define ALT_SEPARATOR:
>=20 > >> File::ALT_SEPARATOR > =3D> "\\" Is it guaranteed to also exist on Linux or Mac Ruby, having the value '/' on those systems? Ronald --=20 Ronald Fischer <ronald.fischer@venyon.com> Phone: +49-89-452133-162 |
|
|
|
#10 |
|
Messages: n/a
Hébergeur: |
On Sep 17, 2007, at 01:23, Ronald Fischer wrote:
>> Windows ruby does define ALT_SEPARATOR: >> >>>> File::ALT_SEPARATOR >> => "\\" > > Is it guaranteed to also exist on Linux or Mac Ruby, having the > value '/' on those systems? Those systems don't have an alternate separator so it is set to nil. -- Poor workers blame their tools. Good workers build better tools. The best workers get their tools to do the work for them. -- Syndicate Wars |
|
|
|
#11 |
|
Messages: n/a
Hébergeur: |
Ronald Fischer wrote:
> On my Ruby 1.8.5 under Windows, I have: C:> ruby -e 'puts File::SEPARATOR' / > Shouldn't it output '\' instead? Not sure if this is answered yet, but Windows accepts /. That prevents endless hacks in all the legacy code that Windows must support. Now all we need is a Notepad.exe that, between getting every encoding in the world correct, will respectfully display a lowly \n correctly... -- Phlip |
|
![]() |
| Outils de la discussion | |
|
|