Re: [Pharo-project] FileURL don't works properly on windows
On Mar 27, 2012, at 4:05 PM, Igor Stasenko wrote:
Try:
(FileDirectory default / 'foo') asUrl retrieveContents
Yes, we need to really do a pass over the Url... there is Url (from old Squeak). The there is URI, a package from Impara that we wanted to replace Url in Squeak 3.9 but development stopped when Impara could not contribute to Squeak anymore (due to politics...). Then there is ZnUrl... Definitly needs cleanup. We need one model for Url that works. Marcus -- Marcus Denker -- http://marcusdenker.de
+1 for that. Though I try to use URLs (URIs) have to draw a line and hit FS directly at a certain point... Regards, Gary ----- Original Message ----- From: "Marcus Denker" <marcus.denker@inria.fr> To: <Pharo-project@lists.gforge.inria.fr> Sent: Tuesday, March 27, 2012 4:17 PM Subject: Re: [Pharo-project] FileURL don't works properly on windows On Mar 27, 2012, at 4:05 PM, Igor Stasenko wrote:
Try:
(FileDirectory default / 'foo') asUrl retrieveContents
Yes, we need to really do a pass over the Url... there is Url (from old Squeak). The there is URI, a package from Impara that we wanted to replace Url in Squeak 3.9 but development stopped when Impara could not contribute to Squeak anymore (due to politics...). Then there is ZnUrl... Definitly needs cleanup. We need one model for Url that works. Marcus -- Marcus Denker -- http://marcusdenker.de
I would vote for Zn to deal with it all... No so simple I know but... Le 27 mars 2012 17:18, "Marcus Denker" <marcus.denker@inria.fr> a écrit :
On Mar 27, 2012, at 4:05 PM, Igor Stasenko wrote:
Try:
(FileDirectory default / 'foo') asUrl retrieveContents
Yes, we need to really do a pass over the Url... there is Url (from old Squeak). The there is URI, a package from Impara that we wanted to replace Url in Squeak 3.9 but development stopped when Impara could not contribute to Squeak anymore (due to politics...).
Then there is ZnUrl...
Definitly needs cleanup. We need one model for Url that works.
Marcus
-- Marcus Denker -- http://marcusdenker.de
On 27 March 2012 17:59, phil@highoctane.be <phil@highoctane.be> wrote:
I would vote for Zn to deal with it all...
The problem is in FileUrl, which is related to different path encoding scheme on windows (use drive letter(s), and back slashes instead of normal ones).. i'm not sure if Zinc can help there, because its urls mostly for http.. if i'm not mistaken.
No so simple I know but...
Le 27 mars 2012 17:18, "Marcus Denker" <marcus.denker@inria.fr> a écrit :
On Mar 27, 2012, at 4:05 PM, Igor Stasenko wrote:
Try:
(FileDirectory default / 'foo') asUrl retrieveContents
Yes, we need to really do a pass over the Url... there is Url (from old Squeak). The there is URI, a package from Impara that we wanted to replace Url in Squeak 3.9 but development stopped when Impara could not contribute to Squeak anymore (due to politics...).
Then there is ZnUrl...
Definitly needs cleanup. We need one model for Url that works.
    Marcus
-- Marcus Denker -- http://marcusdenker.de
-- Best regards, Igor Stasenko.
True. The situation isn't any better in Java or PHP BTW. Tcl does a bit of effort to get there tough. / for everything and it gets translated right. Tcl and Smalltalk: lovely homoiconic languages of art someone can master. Le 27 mars 2012 18:08, "Igor Stasenko" <siguctua@gmail.com> a écrit :
On 27 March 2012 17:59, phil@highoctane.be <phil@highoctane.be> wrote:
I would vote for Zn to deal with it all...
The problem is in FileUrl, which is related to different path encoding scheme on windows (use drive letter(s), and back slashes instead of normal ones).. i'm not sure if Zinc can help there, because its urls mostly for http.. if i'm not mistaken.
No so simple I know but...
Le 27 mars 2012 17:18, "Marcus Denker" <marcus.denker@inria.fr> a écrit :
On Mar 27, 2012, at 4:05 PM, Igor Stasenko wrote:
Try:
(FileDirectory default / 'foo') asUrl retrieveContents
Yes, we need to really do a pass over the Url... there is Url (from old Squeak). The there is URI, a package from Impara that we wanted to replace Url in Squeak 3.9 but development stopped when Impara could not contribute to Squeak
anymore
(due to politics...).
Then there is ZnUrl...
Definitly needs cleanup. We need one model for Url that works.
Marcus
-- Marcus Denker -- http://marcusdenker.de
-- Best regards, Igor Stasenko.
On 27 Mar 2012, at 18:07, Igor Stasenko wrote:
The problem is in FileUrl, which is related to different path encoding scheme on windows (use drive letter(s), and back slashes instead of normal ones).. i'm not sure if Zinc can help there, because its urls mostly for http.. if i'm not mistaken.
Yes, ZnUrl is HTTP(S) specific and does not include a number of aspect that are in URL like uername and password. File URLs (http://en.wikipedia.org/wiki/File_URI_scheme) are more complicated because of platform differences, the way things seem to be on Windows is a bit scary, for me at least. Cleaning up and/or unifying the URL/URI mess would be a nice project.
No so simple I know but...
Le 27 mars 2012 17:18, "Marcus Denker" <marcus.denker@inria.fr> a écrit :
On Mar 27, 2012, at 4:05 PM, Igor Stasenko wrote:
Try:
(FileDirectory default / 'foo') asUrl retrieveContents
Yes, we need to really do a pass over the Url... there is Url (from old Squeak). The there is URI, a package from Impara that we wanted to replace Url in Squeak 3.9 but development stopped when Impara could not contribute to Squeak anymore (due to politics...).
Then there is ZnUrl...
Definitly needs cleanup. We need one model for Url that works.
Marcus
-- Marcus Denker -- http://marcusdenker.de
this part is closely related to command-line arguments handling.. on windows things, which expected to work, like: vm image.image <pathToScript>.st fails to find the script, because it messing up with back/forward slashes in path and at the end it transforms an input into escaped slashes, which is of course cannot be found in file system... On 27 March 2012 17:17, Marcus Denker <marcus.denker@inria.fr> wrote:
On Mar 27, 2012, at 4:05 PM, Igor Stasenko wrote:
Try:
(FileDirectory default / 'foo') asUrl retrieveContents
Yes, we need to really do a pass over the Url... there is Url (from old Squeak). The there is URI, a package from Impara that we wanted to replace Url in Squeak 3.9 but development stopped when Impara could not contribute to Squeak anymore (due to politics...).
Then there is ZnUrl...
Definitly needs cleanup. We need one model for Url that works.
    Marcus
-- Marcus Denker -- http://marcusdenker.de
-- Best regards, Igor Stasenko.
participants (5)
-
Gary Chambers -
Igor Stasenko -
Marcus Denker -
phil@highoctane.be -
Sven Van Caekenberghe