Home  
Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
53 user(s) are online (42 user(s) are browsing Forums)

Members: 1
Guests: 52

xenic, more...
Support us!
Recent OS4 Files
OS4Depot.net



« 1 2 (3)


Re: SFTP filesystem
Just can't stay away
Joined:
2007/1/26 21:48
From New Zealand
Posts: 1882
@salass00

Quote:
More like "don't use non-ASCII characters".


Some of the latin character encodings support umlauts; e.g., ISO-8859-1.

I knew that displaying UTF-8 was hard, but I didn't realize that it also prevents accessing files with "non-standard" characters. I thought that you'd still be able to read the files.

Hans

_________________
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
   Report Go to top

Re: SFTP filesystem
Just can't stay away
Joined:
2006/12/4 23:15
Posts: 1940
@Hans

Quote:

Some of the latin character encodings support umlauts; e.g., ISO-8859-1.


Yeah but conversion is complex, because of the lack of 1 to 1 correspondance between uf8 and 8bit encodings, and / or potentialy missing characters.

Quote:

I knew that displaying UTF-8 was hard, but I didn't realize that it also prevents accessing files with "non-standard" characters. I thought that you'd still be able to read the files.


I'm pretty sure you can actually. DOS doesn't care about encoding as far as I understand it.

I just created a file name schön (o with umlaut incase that doesn't get encoded properly between here and the website ) on my linux box, coppied it by ftp to ram: with pftp and could open it fine.

The filename displayed as

's' 'c' 'h' 'captial A tilda' 'paragraph mark' 'n'

but was still accessable from the workbench, or the shell if I used name completion. I might have a challenge trying to type it though.

The bigger problem would happen if I create a file called schön on the amiga side and try and send that. That ends up as sch?n (invaid encoding) in the filemanager, and again I can access it with name completeion, but this time I really can't type it at all.






_________________
Blender For OS4.x : Blues : Walker Broad
   Report Go to top

Re: SFTP filesystem
Just can't stay away
Joined:
2007/1/26 21:48
From New Zealand
Posts: 1882
@broadblues

Can you also open such files with ASL requesters?

I'm guessing that saving might be an issue if ASL requesters also do character set conversion.

Hans

_________________
http://hdrlab.org.nz/ - Amiga OS 4 projects, programming articles and more.
https://keasigmadelta.com/ - more of my work
   Report Go to top

Re: SFTP filesystem
Home away from home
Joined:
2006/11/26 21:45
From A haunted Castle somewhere in the Bavarian Mountains
Posts: 2943
@broadblues

Yes i tried that aswell and the üproblem is not FTP (in any derivate i tried).
That works pretty well.
The problem is inside (or missing from) smbfs/samba.
Accessing a share there will not let you use it once you copied, renamed or created it with such a character.

So i guess i might be in luck, at least when the new filesystem does the same as FTP does, otherwise i'm stomped again.

@Hans

Not tried with a FTP FS, but smbfs/samba will list the file, but access them.
Big problem, as my shares are virtually unusable.

_________________
If slaughterhouses had glass walls, everyone would be a vegetarian. ~ Sir Paul McCartney
-
Did everything just taste purple for a second? ~ Philip J. Fry
-
Ain't got no cash, ain't got no style, ladies vomit when I smile. ~ Dr. John Zoidberg
   Report Go to top

Re: SFTP filesystem
Just can't stay away
Joined:
2006/11/30 11:30
From Finland
Posts: 1565
@Hans

Quote:

I'm guessing that saving might be an issue if ASL requesters also do character set conversion.


I'm pretty sure it doesn't. The problem is that most components just assume that all file names and such are in the "correct" codeset and do no conversion or checking whatsoever.

This only "works" as long as you only use native filesystems like FFS, SFS, JXFS, NGFS and so on that also make this assumption and never exchange disks with someone who uses a different codeset.

Other OSes have moved on to using utf-8 only and ideally AmigaOS should too.

   Report Go to top

Re: SFTP filesystem
Amigans Defender
Joined:
2006/11/17 22:40
From England
Posts: 3191
@broadblues

Quote:
Yeah but conversion is complex, because of the lack of 1 to 1 correspondance between uf8 and 8bit encodings, and / or potentialy missing characters.


I just realised an additional problem: in UTF-8 there is more than one way of expressing an accented character. There are conventions for normalisation that should prevent this from being a problem... but you never know...

   Report Go to top

Re: SFTP filesystem
Home away from home
Joined:
2007/5/19 13:23
From England
Posts: 3507
@salass00
I'll be VERY interested to try this with my FolderSync2, when it's a bit more mature, as FTP Mount is unreliable these days & SMBFS doesn't work at all (it nearly works but that's not enough for my heavy usage).

edit: I see discussion of UTF-8/etc support. FolderSync2 has a UTF-8 parsing mode, which works well with 'dumb' FTP Mount passing UTF-8 sequences straight through (from a Windows PC).

The reason I can't use SMBFS is it's UTF-8 support is broken/incomplete AND it has no "UTF-8 pass through" mode. (If I had time I'd investigate adding this myself. It would presumably be trivial, if you could get it to compile in the first place...)

So please ensure your SFTP filingsystem has the option for a dumb "UTF-8 pass-through" mode.

_________________
Author of the PortablE programming language.
I love using Amiga OS4.1
It is pitch black. You are likely to be eaten by a grue...
   Report Go to top

Re: SFTP filesystem
Just can't stay away
Joined:
2006/11/30 11:30
From Finland
Posts: 1565
I just wrote a README file with some usage instructions for the ssh2-handler.

All of the relevant FUSE operations are implemented and working, with the exception of symlink() used for creating soft links. For some reason the libssh2_sftp_symlink() call just returns an error and won't do anything for me.

   Report Go to top


« 1 2 (3)



[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project