Jeremy Allison
1999-Jun-28 00:08 UTC
2.0.4b/rh60/smbstatus: European characters (accented) (PR#18293)
giulioo@tiscalinet.it wrote:> SOLUTION: > for samba 2.0.x I need to use > smbstatus|tr '\205\212\215\225\227\202' '\340\350\354\362\371\351' > and all is ok :-) > > If someone can explain me this I'm still waiting :)Try adding the following patch to 2.0.4b. This should fix the problem and will be in the next release. Regards, Jeremy Allison, Samba Team. Index: utils/status.c ==================================================================RCS file: /data/cvs/samba/source/utils/status.c,v retrieving revision 1.34.2.3 diff -u -r1.34.2.3 status.c --- status.c 1999/06/12 02:40:07 1.34.2.3 +++ status.c 1999/06/28 00:06:58 @@ -135,7 +135,8 @@ else printf("NONE "); - printf(" %s %s",fname,asctime(LocalTime((time_t *)&e->time.tv_sec))); + printf(" %s %s",dos_to_unix(fname,False), + asctime(LocalTime((time_t *)&e->time.tv_sec))); } } -- -------------------------------------------------------- Buying an operating system without source is like buying a self-assembly Space Shuttle with no instructions. --------------------------------------------------------
Giulio Orsero
1999-Jun-28 10:34 UTC
2.0.4b/rh60/smbstatus: European characters (accented) (PR#18293)
On Sun, 27 Jun 1999 17:08:15 -0700, hai scritto:>Try adding the following patch to 2.0.4b. This should >fix the problem and will be in the next release.Yes, the accented chars are displayed correctly now. Thanks. There's another problem though (similar): smbclient -L <samba-server-master-browser> This shows all the pcs in the samba server browse list. If one of the pc has the "Comment" (I say "comment" just because this happened to me, maybe it's the same for the name) with european characters, then there is the same problem as with pre-patch smbstatus (it is solved in the same manner with tr).