Thank you for your help but… I execute some commands to make sure the locale is in UTF-8 by dpkg-reconfigure locales and even adding setting in /etc/environment
and using utility like convmv to turn all file and folder into UTF-8 (in fact, they were in UTF-8 already.) I add option in smb.conf unix charset = UTF8 dos charset is omitted as default (dos charset = CP850) However, when I run /usr/local/samba/bin/smbclient //localhost/Public -UAdministrator%'verysecurepasswd' -c 'ls' The same error in my log floods…… Is it a bug? Kinglok, Fong On 10 Feb, 2013, at 1:35 AM, TAKAHASHI Motonobu <[email protected]> wrote: > You had better set 'dos charset' parameter correctly and 'unix charset' > parameter if you do not use UTF-8 on Linux. > > From: Jeremy Allison <[email protected]> > Date: Sat, 9 Feb 2013 09:04:47 -0800 > > On Sat, Feb 09, 2013 at 11:54:26PM +0800, Kinglok, Fong wrote: > My machine is running samba 4.0.3 inside a DomU of Debian Wheezy. > > Following the Samba AD Howto and running Samba 4.0.3 successfully but with > one pretty serious problem. When I try access the folder with 1000 files, > the speed is *VERY* slow. > > After employ log level to 3, log.smbd is flooded with: > ============================================= > [2013/02/09 23:44:05.910717, 3] > ../source3/locking/share_mode_lock.c:408(fetch_share_mode_unlocked) > Could not fetch share entry > [2013/02/09 23:44:05.911631, 3] > ../source3/smbd/dir.c:1136(smbd_dirptr_get_entry) > smbd_dirptr_get_entry mask=[*] found ./行政 fname=行政 (行政) > [2013/02/09 23:44:05.912607, 3] > ../lib/util/charset/convert_string.c:316(convert_string_handle) > convert_string_internal: Conversion error: Illegal multibyte sequence(行政) > [2013/02/09 23:44:05.913517, 3] > ../lib/util/charset/convert_string.c:297(convert_string_handle) > convert_string_internal: Conversion error: Incomplete multibyte > sequence(??政) > [2013/02/09 23:44:05.914467, 3] > ../lib/util/charset/convert_string.c:297(convert_string_handle) > convert_string_internal: Conversion error: Incomplete multibyte sequence(?政) > [2013/02/09 23:44:05.915412, 3] > ../lib/util/charset/convert_string.c:316(convert_string_handle) > convert_string_internal: Conversion error: Illegal multibyte sequence(政) > [2013/02/09 23:44:05.916356, 3] > ../lib/util/charset/convert_string.c:297(convert_string_handle) > convert_string_internal: Conversion error: Incomplete multibyte sequence(??) > ================================================================== > > Is that filename '行政' in utf8 format on the disk ? > Or is it in a previous encoding format such as big5 or > Guobiao ? > > Without a parameter setting Samba defaults to utf8 > encoding, and things can go wrong if filenames on > disk aren't actually utf8. > > Jeremy. > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
