English Amiga Board


Go Back   English Amiga Board > Main > Amiga scene

 
 
Thread Tools
Old 02 January 2023, 18:04   #41
BSzili
old chunk of coal
 
BSzili's Avatar
 
Join Date: Nov 2011
Location: Hungary
Posts: 1,293
There's already UTF-8 support in filesysbox.library, which is why I asked for some example file names to easier testing.
BSzili is offline  
Old 02 January 2023, 18:07   #42
DJBase
Amiga is my Religion
 
DJBase's Avatar
 
Join Date: May 2005
Location: Germany
Posts: 578
Quote:
Originally Posted by BSzili View Post
I haven't tested any files or passwords with international characters yet. If possible, could you give me any examples of file names you had problems with?

Try something with '?' as character in example. Seems to not work in passwords.
DJBase is offline  
Old 02 January 2023, 18:09   #43
BSzili
old chunk of coal
 
BSzili's Avatar
 
Join Date: Nov 2011
Location: Hungary
Posts: 1,293
That's a known issue, as ? is used internally as a string separator. You can use the PASSWORD argument instead as a workaround.
BSzili is offline  
Old 02 January 2023, 18:32   #44
amigafreak68k
Registered User
 
Join Date: Apr 2013
Location: Engelsdorf / Germany
Posts: 468
Download LimpidClock, extract the Archive and copy the locale files to a share

http://aminet.net/package/util/wb/limpidclock
amigafreak68k is offline  
Old 02 January 2023, 18:34   #45
BSzili
old chunk of coal
 
BSzili's Avatar
 
Join Date: Nov 2011
Location: Hungary
Posts: 1,293
Thanks. Should I try copying those files from the share or to the share?
BSzili is offline  
Old 02 January 2023, 18:44   #46
amigafreak68k
Registered User
 
Join Date: Apr 2013
Location: Engelsdorf / Germany
Posts: 468
to the share… From the share I didn‘t tested right now
Attached Thumbnails
Click image for larger version

Name:	BEA64C1A-1056-41E9-8E62-EC43028A701A.jpg
Views:	199
Size:	886.1 KB
ID:	77628  
amigafreak68k is offline  
Old 02 January 2023, 18:52   #47
BSzili
old chunk of coal
 
BSzili's Avatar
 
Join Date: Nov 2011
Location: Hungary
Posts: 1,293
I was able to reproduce this, I'll look into what causes the problem.
BSzili is offline  
Old 03 January 2023, 08:41   #48
BSzili
old chunk of coal
 
BSzili's Avatar
 
Join Date: Nov 2011
Location: Hungary
Posts: 1,293
While filesysbox.library comes with UTF-8 support, it assumes that the underlying system can cope with UTF-8 strings, which is not the case for "classic" AmigaOS. To make it worse, there's no system-wide character set setting. This is why codesets.library has to do all the guesswork based on the system language and environment variables.
Fortunately ISO-8859-1 <-> UTF-8 conversion is relatively simple and fast, so I'll implement this in the handler. Of course this is not a 1:1 conversion as not every UTF-8 character can be represented in Latin-1, but it'll work for most users.
BSzili is offline  
Old 03 January 2023, 10:00   #49
E-Penguin
Banana
 
E-Penguin's Avatar
 
Join Date: Jul 2016
Location: Darmstadt
Posts: 1,214
This is premium-level technical support
E-Penguin is offline  
Old 04 January 2023, 00:41   #50
tygre
Returning fan!
 
tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 1,434
Hi BSzili!

Quote:
Originally Posted by BSzili View Post
While filesysbox.library comes with UTF-8 support, it assumes that the underlying system can cope with UTF-8 strings, which is not the case for "classic" AmigaOS. To make it worse, there's no system-wide character set setting. This is why codesets.library has to do all the guesswork based on the system language and environment variables.
Fortunately ISO-8859-1 <-> UTF-8 conversion is relatively simple and fast, so I'll implement this in the handler. Of course this is not a 1:1 conversion as not every UTF-8 character can be represented in Latin-1, but it'll work for most users.
That would be awesome!

I cannot give you filenames in Cyrillic or others here because EAB actually only accepts Latin characters but let me know if you want some, I could send them to you by e-mail.

PS. I'll be curious to know your solution: mine consisted in replacing UTF16 "chars" by Xs and append a unique identifier to each file...
tygre is offline  
Old 04 January 2023, 03:04   #51
Dale423
Registered User
 
Join Date: Jan 2020
Location: Bentonville, AR USA
Posts: 75
@BSzili

I cannot access your site with Chrome on Win11. (https://bszili.morphos.me/stuff/smb2-handler). I am getting this error:

This site can’t provide a secure connectionbszili.morphos.me uses an unsupported protocol.
ERR_SSL_VERSION_OR_CIPHER_MISMATCH
Dale423 is offline  
Old 04 January 2023, 04:06   #52
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,796
Same here with Firefox on Windows 10:

Secure Connection Failed

An error occurred during a connection to bszili.morphos.me. Cannot communicate securely with peer: no common encryption algorithm(s).

Error code: SSL_ERROR_NO_CYPHER_OVERLAP

The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.

Please contact the website owners to inform them of this problem.
Thorham is offline  
Old 04 January 2023, 06:32   #53
BSzili
old chunk of coal
 
BSzili's Avatar
 
Join Date: Nov 2011
Location: Hungary
Posts: 1,293
Try a different browser that allows you to access http:// links without forcefully promoting them to https:// which currently isn't available on my website. I'm using Brave, but there must be other browsers that don't do that.

Quote:
Originally Posted by tygre View Post
Hi BSzili!
That would be awesome!

I cannot give you filenames in Cyrillic or others here because EAB actually only accepts Latin characters but let me know if you want some, I could send them to you by e-mail.

PS. I'll be curious to know your solution: mine consisted in replacing UTF16 "chars" by Xs and append a unique identifier to each file...
The mapping will probably be complicated by the FUSE API, as many functions expect a path. In the first round there will be no Cyrillc support because of the character set issue, only Latin-1. Later I'll add optional support for codesets.library for those who use a different locale.

Last edited by BSzili; 04 January 2023 at 08:05.
BSzili is offline  
Old 04 January 2023, 13:27   #54
tygre
Returning fan!
 
tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 1,434
Hi BSzili!

Quote:
Originally Posted by BSzili View Post
The mapping will probably be complicated by the FUSE API, as many functions expect a path. In the first round there will be no Cyrillc support because of the character set issue, only Latin-1. Later I'll add optional support for codesets.library for those who use a different locale.
Indeed!

My "solution" was to expose "AmigaOS-ready" names (unique Latin-1 filenames) only to the Amiga, while keeping the normal names (UTF16) internally, using a simple key-value dictionary to remember the mapping.

For example, AmigaAMP would list a directory containing a file "XXXXX-1234.mp3" and can play it because, internally, the file name would still be something with 5 UTF16 "chars" that the Samba server can understand and access.

Keep us posted on your implementation!
tygre is offline  
Old 04 January 2023, 19:22   #55
BSzili
old chunk of coal
 
BSzili's Avatar
 
Join Date: Nov 2011
Location: Hungary
Posts: 1,293
It turns out salass00 is already working on a solution. His idea is to use URL encoding-style escaping which would allow for mapping the characters back without the need to store the original UTF-8 names.
BSzili is offline  
Old 04 January 2023, 20:22   #56
bni
Registered User
 
Join Date: Feb 2019
Location: Örebro
Age: 47
Posts: 117
Thumbs up

Thanks a lot for this.

Just tested it on my A1200 with PCMCIA network card. Works great to connect to my Linux/Samba machine. File listing and file transfer is fast.

Does not work with macOS Ventura built in file sharing however. Get the "No disk in drive". I tried to force SMB2 like described here https://www.droidwin.com/smb-file-sh...s-ventura-fix/ but didn't make a difference.
bni is offline  
Old 04 January 2023, 20:53   #57
BSzili
old chunk of coal
 
BSzili's Avatar
 
Join Date: Nov 2011
Location: Hungary
Posts: 1,293
In theory both SMB2 and SMB3 should work as the handler supports both, no disk means it couldn't connect to the share. To rule out problems on the Mac side, have you tried connecting from your Linux to it?
BSzili is offline  
Old 04 January 2023, 22:48   #58
bni
Registered User
 
Join Date: Feb 2019
Location: Örebro
Age: 47
Posts: 117
Tried that now and SMB seems to be completely non-functional in macOS Ventura

Aborts after connect and login with
smb: \> SMBecho failed (NT_STATUS_CONNECTION_DISCONNECTED). The connection is disconnected now

So I won't clutter the thread with macOS problems further.
bni is offline  
Old 05 January 2023, 00:10   #59
patrik
Registered User
 
patrik's Avatar
 
Join Date: Jan 2005
Location: Umeå
Age: 43
Posts: 926
Quote:
Originally Posted by BSzili View Post
It turns out salass00 is already working on a solution. His idea is to use URL encoding-style escaping which would allow for mapping the characters back without the need to store the original UTF-8 names.
Smart solution!
patrik is offline  
Old 05 January 2023, 00:14   #60
tygre
Returning fan!
 
tygre's Avatar
 
Join Date: Jan 2011
Location: Montréal, QC, Canada
Posts: 1,434
Quote:
Originally Posted by patrik View Post
Smart solution!
PS. Consider also the the lengths of the file names: escaping will increase a lot the file names, which should be limited to 32 or 107 or... depending on the filesystem? (A unique identifier will still be needed in case two (original) file names different only beyond the max. length of the Amiga, else they would be undistinguishable! )
tygre is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using PotGo on Mouse Port (Port 0)? Daedalus Coders. System 14 02 March 2016 20:44
Help please - Making Frankenstein os3.0 with os3.5/9 bits Abdabs support.Other 3 27 February 2015 21:51
Serial port, parallel port, and pipe device mount errors Samurai_Crow support.FS-UAE 4 13 March 2014 00:04
ECS. Make OS3.1 look like OS3.9 without loosing speed. lukassid support.Apps 21 19 February 2013 00:13
Sending debug output to the serial port OS3.x NovaCoder Coders. C/C++ 0 18 February 2013 06:56

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:07.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10703 seconds with 14 queries