mount_smbfs and symbol "№" in russian filenames

mount_smbfs and symbol "â„–" in russian filenames

Hello

FreeBSD 7.2
Windows Server 2003 R2 (NTFS)

/etc/nsmb.conf
Code:
[default]
workgroup=MY_GROUP

[SRV1]
charsets=utf-8:cp866
addr=192.168.78.1

[SRV1]
password=$$16e9b5054613c1d11f7fcb39ac2b0b6bf01fe

/usr/local/etc/smb-client.conf
Code:
[global]

workgroup = MY_GROUP

# Charset settings
display charset = UTF-8
unix charset = UTF-8
dos charset = CP866

/usr/local/etc/>locale
Code:
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_ALL=

mount_smbfs -E utf-8:cp866 -W MY_GROUP //adm@srv1/share /mnt/mount_share

There is a file named Документ №1.txt
At FreeBSD I see it with the name ???㬥?? ?1.txt.
And other files with the symbol â„– look the same.

All other files without this symbol look fine.

If I remove the symbol № from the filename, then the file will be seen as Документ 1.txt

Previously, all worked well on linux with the command:
mount -t cifs -o user=adm,workgroup=my_group,iocharset=utf8 //srv1/share /mnt/mount_share
But in FreeBSD is no such command.

How to solve this problem?
 
Back
Top