OS/2, eCS & ArcaOS - Technical > Setup & Installation
Can we store UTF-8 encoded file names on JFS? (turns to git and ssh problems)
Andi B.:
I want to synchronize documents with a Linux system via git. I've some file names with German 'Umlaute' (äüöß...). When I check out the repository on Linux there I get something like 'invalid encoding' with the file managers there. Of course I can convert the file names to UTF-8 (convmv -f cp850 -t utf-8 *) but I fear I can't handle these files afterward on OS/2.
So how do deal with that? Other solutions then changing file names to not use 'special' characters outside ANSI code page?
(Edit: change subject)
Dave Yeo:
JFS uses UTF8 for encoding, though I guess it gets converted to/from your codepage when read/write.
I think the problem is actually git, which seems to encode in the native codepage. I committed an authors name that used umlauts, seemed to work fine with OS/2, Martin looked at the repository on I assume Windows and the name looked wrong, he changed it and then it was broken on OS/2 but looked correct in web browser using UTF8.
Searching, it seems you can use .gitattributes to control encoding, eg https://stackoverflow.com/questions/48907049/what-is-the-appropriate-character-encoding-for-a-git-repo or the official documentation, https://git-scm.com/docs/gitattributes/2.18.0
I didn't know about this and need to remember it for similar reasons. I do routinely use .gitattributes to make Rexx scripts have the correct line endings.
.gitattributes from the screensaver,
--- Code: ---# CRLF is crucial for OS/2 REXX files (also fine for Windows .cmd)
*.cmd eol=crlf
*.txt eol=crlf
# Be safe by making the Warpin script (*.wis) have crlf
*.wis eol=crlf
--- End code ---
Edit: you likely need to experiment, let us know the results
KO Myung-Hun:
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.
Andi B.:
Thanks.
Dave, for line endings I don't wanna convert I usually set in .git/config autocrlf=false. There is also =input or others but I did not experiment a lot with that. Maybe your solution with .gitattributes is better. Have to think about.
git - now I remember I had a very hard time with the git version on this system. I could not connect to my ssh repositories if I remember correctly. I had to downgrade to 2.0.x as the latest from netlabs gave me problems I cant overcome. Now I remember I wanted to solve this 'git version problem' with the new system I wanted to set up. Unfortunately I've strange problems with ArcaOS even during installation on that new system. So I have to do more and more work on Linux boxes instead new ArcaOS unfortunately.
KO Myung-Hun, what is fixed in your version instead the netlabs ones? Is it only the newer code compiled to OS/2 or do you remember special OS/2 fixes compared to other versions?
Heikki Kekki:
Here I can store UTF-8 encoded file names on JFS and on ext4. Both appears okay on OS/2 (ArcaOS) including äüöß.srt. On Android TV äöå works fine from OS/2 and Xubuntu.
Navigation
[0] Message Index
[#] Next page
Go to full version