Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Dec 2006 14:56:57 +0800
From:      =?UTF-8?Q?=E5=BC=A0=E9=9F=A1=E6=AD=A6?= <weiwu@sdf.lonestar.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: (repost) cannot read windows share
Message-ID:  <1165301817.5417.52.camel@joe.realss.com>
In-Reply-To: <45751370.7040704@mawer.org>
References:  <1165282478.5417.6.camel@joe.realss.com> <200612041946.15303.lane@joeandlane.com>	<457507A4.40101@u.washington.edu> <457509AA.5030007@u.washington.edu> <1165300128.5417.36.camel@joe.realss.com> <45751370.7040704@mawer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
在 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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1165301817.5417.52.camel>