(repost) cannot read windows share
张韡武
weiwu at sdf.lonestar.org
Mon Dec 4 22:57:06 PST 2006
在 2006-12-05二的 17:36 +1100,Antony Mawer写道:
[snip]
> I don't know if this is at all useful, but I have come across the
> following patches, which appear to have been ported from Darwin, to
> improve handling of multibyte character sets:
>
> http://people.freebsd.org/~imura/kiconv/
>
> It would be interesting to see these committed (if they are valuable),
> as I know there are issues with FreeBSD mount_smbfs when operating
> against the Mac OSX samba implementation, which (I am told) only speaks
> UCS2.
Thank you very much for this very informative article. Here is what I
quoted from that article:
However, there are some limitations.
- unable to handle over 3 byte characters at all.
- tolower/toupper conversion is only possible for single byte
characters.
For example, UTF-8 has 1-4 byte characters. GB18030 has 1,2,4
byte characters. At this time, we're unable to handle them.
So it is clear I will have problem, because it's being said, UTF-8 is
not possible. But UTF-16/USC2 should be possible and GB2312 should be
possible too because both are 2-bytes (UTF-16 are mostly 2-bytes).
Thus I should be able to:
1) adjust system locale to UTF-16 or USC2
2) use mount_smbfs -E UTF-16:GB2312
GB2312 is the stripped version of GB18030 that remove all GB18030 4-byte
characters from GB18030 (by discarding them).
But I think FreeBSD-6.1 do not include this nice person's work! Thus
even "mount_smbfs -E UTF-16:GB2312" won't work for me.
Now I am really interested if I can get smbmount (part of samba)
working, if so, problem solved, otherwise there is no way to go.
>
> Given the work already gone into these, it would be nice to see them
> finished off and committed... I wonder how many other smbfs-related
> improvements may exist in Darwin that might be worth looking at?
>
> http://www.opensource.apple.com/darwinsource/10.4.8.x86/smb-217.18/
>
> Cheers
> Antony
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list