Ali SIMON
2018-Apr-25 13:31 UTC
[Samba] Samba 4 - ISO-8859-15 filenames not listed while browsing
Thanks Jeremy, i'm analyzing this with the application team, we'll see what we can find.> I was hoping to find a way for the samba4 server to behave like samba3 (as > in ignoring bad characters and replacing them with an underscore > character), which in the end resulted in the best compromise.In the meantime, do you have any idea why there is difference between the two version ? Samba 3 was configured with the default "unix charset = utf-8" and it was kind of working, so I'm wondering if this was a "bug" or something ? Is there any way I can make it behave like before and "silently" ignore bad charset ? Regards
Harry Jede
2018-Apr-25 17:26 UTC
[Samba] Samba 4 - ISO-8859-15 filenames not listed while browsing
Am Mittwoch, 25. April 2018, 15:31:50 CEST schrieb Ali SIMON via samba:> Thanks Jeremy, > > i'm analyzing this with the application team, we'll see what we can > find. > > I was hoping to find a way for the samba4 server to behave like > > samba3 (as in ignoring bad characters and replacing them with an > > underscore character), which in the end resulted in the best > > compromise. > In the meantime, do you have any idea why there is difference between > the two version ? > Samba 3 was configured with the default "unix charset = utf-8" and it > was kind of working, so I'm wondering if this was a "bug" or > something ? > > Is there any way I can make it behave like before and "silently" > ignore bad charset ?Which locale have you installed on both systems? An old debian with samba-3.6.3: $ locale -a C de_DE de_DE at euro de_DE.iso88591 de_DE.iso885915 at euro de_DE.utf8 deutsch en_US en_US.iso88591 en_US.iso885915 en_US.utf8 german POSIX A new Debian with samba 4.7.4: $ locale -a C C.UTF-8 de_DE.utf8 POSIX> > Regards-- Gruss Harry Jede
Ali SIMON
2018-Apr-27 08:14 UTC
[Samba] Samba 4 - ISO-8859-15 filenames not listed while browsing
On Wed, Apr 25, 2018 at 7:26 PM, Harry Jede <walk2sun at arcor.de> wrote:> > Which locale have you installed on both systems? > > >Hello, the os comes with a lot of locale (450+), but the relevant one are described below : - sles11/samba3 : # locale -a | egrep -i "^de|^german|^c$|^posix|iso" C de_AT de_AT at euro de_AT.utf8 de_BE de_BE at euro de_BE.utf8 de_CH de_CH.utf8 de_DE de_DE at euro de_DE.utf8 de_LU de_LU at euro de_LU.utf8 en_GB.iso885915 en_US.iso885915 et_EE.iso885915 POSIX sv_SE.iso885915 # locale LANG=en_US.UTF-8 LC_CTYPELC_NUMERICLC_TIMELC_COLLATELC_MONETARYLC_MESSAGESLC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL # lsof -p 4844 | grep locale smbd 4844 root mem REG 8,1 256324 25181447 /usr/lib/locale/en_US.utf8/LC_CTYPE smbd 4844 root mem REG 8,1 1163682 25197811 /usr/lib/locale/en_US.utf8/LC_COLLATE smbd 4844 root mem REG 8,1 54 25220224 /usr/lib/locale/en_US.utf8/LC_NUMERIC smbd 4844 root mem REG 8,1 2454 42086425 /usr/lib/locale/en_US.utf8/LC_TIME smbd 4844 root mem REG 8,1 286 42086424 /usr/lib/locale/en_US.utf8/LC_MONETARY smbd 4844 root mem REG 8,1 57 21076032 /usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES smbd 4844 root mem REG 8,1 34 33841154 /usr/lib/locale/en_US.utf8/LC_PAPER smbd 4844 root mem REG 8,1 77 33651747 /usr/lib/locale/en_US.utf8/LC_NAME smbd 4844 root mem REG 8,1 155 42011704 /usr/lib/locale/en_US.utf8/LC_ADDRESS smbd 4844 root mem REG 8,1 59 33798221 /usr/lib/locale/en_US.utf8/LC_TELEPHONE smbd 4844 root mem REG 8,1 23 33980445 /usr/lib/locale/en_US.utf8/LC_MEASUREMENT smbd 4844 root mem REG 8,1 373 42009733 /usr/lib/locale/en_US.utf8/LC_IDENTIFICATION - sles12/samba4 : # locale -a | egrep -i "^de|^german|^c$|^posix|iso" C de_AT de_AT at euro de_AT.utf8 de_BE de_BE at euro de_BE.utf8 de_CH de_CH.utf8 de_DE de_DE at euro de_DE.utf8 de_LU de_LU at euro de_LU.utf8 en_GB.iso885915 en_US.iso885915 et_EE.iso885915 POSIX # locale LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 LC_NUMERICLC_TIMELC_COLLATELC_MONETARYLC_MESSAGESLC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL # lsof -p 4244 | grep locale smbd 4244 root mem REG 8,1 278308 2107025 /usr/lib/locale/en_US.utf8/LC_CTYPE Thank you