Not sure if this is OT or not, but I'll ask anyway.
The CD was apparently burned on a MSWxxx box with a shift-jis file system. (At any rate, there are shift-jis file names in the mix.)
That the shift-jis file names get mojibake-d is one thing, but latin file names throughout the CD come out all lower-case, which of course mucks up javac.
Anybody with any ideas as to why, and as to how to get around this kind of behavior?
Okay, I've dug around a bit and (re-)discovered Joliet extensions.
For the record,
2006-02-21 (火) の 18:04 +0900 に Joel Rees さんは書きました:
Not sure if this is OT or not, but I'll ask anyway.
The CD was apparently burned on a MSWxxx box with a shift-jis file system. (At any rate, there are shift-jis file names in the mix.)
That the shift-jis file names get mojibake-d is one thing, but latin file names throughout the CD come out all lower-case, which of course mucks up javac.
If that isn't clear, the result is that
jp/domain/package/ThisCamelCaseClass.java
on the CD (as mounted by MSWxp and, from what my co-worker here tells me, Solaris) shows up and is copied as
jp/domain/package/thiscamelcaseclass.java
when the CD is mounted on Fedora Core 4.
Anybody with any ideas as to why, and as to how to get around this kind of behavior?
I was looking for a way to grep into shift-jis files, and found lv and other information that pointed to the Joliet extensions. So I looked at mount and see the map options in the manual.
Apparently the map options to mount are by default forcing the CD to map everything lower-case. In addition to the problems I have with Java source file names, I'm guessing this has screwed up the shift-jis file names copying in from CD.
(shift-jis is another of the reasons I consider microsop^Hft a company of tech thieves who have never been able to really fix the messes caused by the bad tech they have acquired to "get the job done now" by hardware insufficient to the task. But I digress.)
So I guess I need to figure out where the default map options (for automount?) are set. Or, perhaps, to remember to
umount mount -o map=off
or something. (I'll have to see if that works next time we get the CD out of the safe.)
Joel Rees wrote:
Okay, I've dug around a bit and (re-)discovered Joliet extensions.
For the record,
2006-02-21 (火) の 18:04 +0900 に Joel Rees さんは書きました:
Not sure if this is OT or not, but I'll ask anyway.
The CD was apparently burned on a MSWxxx box with a shift-jis file system. (At any rate, there are shift-jis file names in the mix.)
That the shift-jis file names get mojibake-d is one thing, but latin file names throughout the CD come out all lower-case, which of course mucks up javac.
Have you tried changing the fstab "options" column entry? You might try putting "nojoliet" in there for an alternate mount point. There's also a "case=<code>", documented for HPFS and HFS. It might also work for ISO9660. You might try "case=asis". The default (since 2.2.x) has been "case=lower".
Mike
On 2/22/06, Mike McCarty mike.mccarty@sbcglobal.net wrote:
Joel Rees wrote:
Okay, I've dug around a bit and (re-)discovered Joliet extensions.
For the record,
2006-02-21 (火) の 18:04 +0900 に Joel Rees さんは書きました:
Not sure if this is OT or not, but I'll ask anyway.
The CD was apparently burned on a MSWxxx box with a shift-jis file system. (At any rate, there are shift-jis file names in the mix.)
That the shift-jis file names get mojibake-d is one thing, but latin file names throughout the CD come out all lower-case, which of course mucks up javac.
Have you tried changing the fstab "options" column entry? You might try putting "nojoliet" in there for an alternate mount point. There's also a "case=<code>", documented for HPFS and HFS. It might also work for ISO9660. You might try "case=asis". The default (since 2.2.x) has been "case=lower".
Mike
Mike,
This may be a stupid question, but where did you come up with your answer? I have manned fstab and mount, but see no mention of case, joliet, etc in there or on any other resource that google points me to when searching for fstab.
I am not doubting you- rather I am trying to build my arsenal of resources. I do not plan on getting a degree in computer science, so I therefore need to know from where to get answers without constantly nagging the list with newbie questions.
In any case, I am currently having fstab related trouble, that I am trying to sort out on my own (with Hebrew filenames on a FAT32 partition). So any fstab-related resource would be welcome.
Dotan Cohen http://ie-only.com
Mike McCarty wrote:
Have you tried changing the fstab "options" column entry? You might try putting "nojoliet" in there for an alternate mount point. There's also a "case=<code>", documented for HPFS and HFS. It might also work for ISO9660. You might try "case=asis". The default (since 2.2.x) has been "case=lower".
Dotan Cohen wrote:
This may be a stupid question, but where did you come up with your answer? I have manned fstab and mount, but see no mention of case, joliet, etc in there or on any other resource that google points me to when searching for fstab.
I'm not Mike, but I suspect he's been looking in the documentation that comes with the Linux kernel source.
On Fedora Core 4, you can install the kernel-doc RPM, cd to /usr/share/doc/kernel-doc-2.6.*, and look in the Documentation/filesystems folder.
Or you can download a tarball of the source, or somewhere like http://www.linuxhq.com/kernel/v2.6/15/Documentation/filesystems/ .
It's well worth being aware of this documentation -- there's a lot of good technical points in there.
Hope this helps,
James.
James Wilkinson wrote:
Mike McCarty wrote:
Have you tried changing the fstab "options" column entry? You might try putting "nojoliet" in there for an alternate mount point. There's also a "case=<code>", documented for HPFS and HFS. It might also work for ISO9660. You might try "case=asis". The default (since 2.2.x) has been "case=lower".
Dotan Cohen wrote:
This may be a stupid question, but where did you come up with your answer? I have manned fstab and mount, but see no mention of case, joliet, etc in there or on any other resource that google points me to when searching for fstab.
I'm not Mike, but I suspect he's been looking in the documentation that comes with the Linux kernel source.
On Fedora Core 4, you can install the kernel-doc RPM, cd to /usr/share/doc/kernel-doc-2.6.*, and look in the Documentation/filesystems folder.
Or you can download a tarball of the source, or somewhere like http://www.linuxhq.com/kernel/v2.6/15/Documentation/filesystems/ .
It's well worth being aware of this documentation -- there's a lot of good technical points in there.
The mount options Mike referred to are all mentioned in "man mount" actually, at least in FC4.
Paul.
On Thu, 2006-02-23 at 15:15 +0200, Dotan Cohen wrote:
This may be a stupid question, but where did you come up with your answer? I have manned fstab and mount, but see no mention of case, joliet, etc in there or on any other resource that google points me to when searching for fstab.
My mount man file has information about both of them in the ISO9660 section. In case you don't know, you can search through man files by pressing slash then the term that you're after. e.g. /iso9660
Dotan Cohen wrote:
This may be a stupid question, but where did you come up with your answer? I have manned fstab and mount, but see no mention of case, joliet, etc in there or on any other resource that google points me to when searching for fstab.
Well, from a variety of sources. I have a book on Linux Admin which I find useful. But these particular pieces of information can be found in
$ man mount
Well, not the part about which kernels had these options...
I am not doubting you- rather I am trying to build my arsenal of resources. I do not plan on getting a degree in computer science, so I therefore need to know from where to get answers without constantly nagging the list with newbie questions.
Sounds like a good plan.
In any case, I am currently having fstab related trouble, that I am trying to sort out on my own (with Hebrew filenames on a FAT32 partition). So any fstab-related resource would be welcome.
I don't know how that works. Sorry. But Google for
+hebrew +file +name +FAT32 +linux
turned up several hits, some of which look promising, one in particular has some info like this...
In windows file systems (vfat/fat32, ntfs, smbfs) the file name is always in the encoding UTF-16. Linux has mount options for those file systems to decide to which encoding to translate (tranparantly) those names
Mike
On Thu, 2006-02-23 at 13:31 -0600, Mike McCarty wrote:
In windows file systems (vfat/fat32, ntfs, smbfs) the file name is always in the encoding UTF-16. Linux has mount options for those file systems to decide to which encoding to translate (tranparantly) those names
Interesting. I had some files on Win98SE with foreign characters that never even showed up in listings through SMB on the Linux box. I ended up just renaming them. But if they're UTF-16, there shouldn't be any need for translation options. Linux should know they're all UTF-16, and your local system ought to be identified by itself.