OS/2, eCS & ArcaOS - Technical > Setup & Installation

Can we store UTF-8 encoded file names on JFS? (turns to git and ssh problems)

<< < (2/2)

KO Myung-Hun:
It has
 
--- Quote ---* Fixed UTF-8 encoded filename could not be created
--- End quote ---

See for details:
  https://github.com/komh/git-os2/releases

Andi B.:
Currently can't say anything about codepage (UTF-8) but the new git version from KO Myung-Hun fixes another 'git clone https...' issue I saw a few days ago.

But now I stumbled over a ssh problem which I think causing this git fail on my local (NAS) repositories. ssh -v ... now shows that it can not find the home directories. It shows something like 'can not find /E$/home/...' where it should look at E:/home/....

I think I saw this before and that's the reason why I settled on git2.0.0 and older ssh on another system. But newest from netlabs.exp (and .rel) do not work here on a fresh ArcaOS5.1DE system.

One thing I've already repaired is /noexistant/home. For this we have to set a home directory for user root in klusmgr. Samba user manager does not work either on this fresh ArcaOS5.1DE so had to use klusmgr for that :-(. You also had to set a shell for root there. I set /usr/bin/sh. Think this is good but don't know. Any thoughts

Andi B.:

--- Quote ---It shows something like 'can not find /E$/home/...' where it should look at E:/home/....
--- End quote ---
Now I've solved this. No clue what happens but I repaired by -

* - open klusrmgr (samba user manager does not work here. Can't login and don't know why
* - selecting proper user and edit
* - although there was the path of home directory set to 'E:\home\... I changed it to ~\.... saved which does not work either
* - then changed back to e:\home\...And now 'ssh -v' magically looks at 'e:/Home/username/.ssh/id_r...'.

No clue if drive letter should be lowercase or / instead \ is needed or ....

Lars:

--- Quote from: KO Myung-Hun on May 26, 2025, 05:45:57 am ---Hi/2.

JFS itself supports unicode although I'm not sure its UCS-2 or UTF-8. However, no OS/2 IO APIs do not support Unicode at all. Converting layer is necessary.

Anyway if you have problems only for file names, then try https://github.com/komh/git-os2/releases/tag/2.42.0-os2-r1.

--- End quote ---

JFS.IFS uses UNICODE.SYS in conjunction with the

* KernCreateUconvObject
* KernStrFromUcs
* KernStrToUcs
Kernel excutive Ring 0 functions (by the way: that is the reason why you have to load UNICODE.SYS before JFS.IFS because KernCreateUConvObject only works during init time and it requires UNICODE.SYS to be available).

That said, I seem to remember that KernStrFromUcs and KernStrToUcs can only convert from/to UCS-2 (as the name implies). If you would need to convert to UTF-8, you would likely need to use KernStrToUcs to go from your local codepage to UCS-2 and then KernStrFromUcs to go from UCS-2 to UTF-8 if you specify that as the target codepage. Would need to look into the OpenJFS sources but I don't think it does that. I also seem to remember that every character of a JFS filename (on disk) is 16-bit. That would exclude UTF-8 as far as I know.

Navigation

[0] Message Index

[*] Previous page

Go to full version