The Samba-Bugzilla – Attachment 1906 Details for
Bug 1939
nmblookup doesn't report multibyte characters correct
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
nmblookup report multibyte chars support
nmblookup_locale.patch (text/plain), 842 bytes, created by
Vladimir Voroshilov
on 2006-05-19 00:23:17 UTC
(
hide
)
Description:
nmblookup report multibyte chars support
Filename:
MIME Type:
Creator:
Vladimir Voroshilov
Created:
2006-05-19 00:23:17 UTC
Size:
842 bytes
patch
obsolete
>--- samba-3.0.22.orig/source/utils/nmblookup.c 2006-02-21 02:33:23.000000000 +0600 >+++ samba-3.0.22/source/utils/nmblookup.c 2006-05-18 21:36:29.934167250 +0700 >@@ -103,6 +103,12 @@ > struct node_status_extra extra; > fstring cleanname; > >+#if defined(HAVE_NL_LANGINFO) && defined(CODESET) && defined(HAVE_SETLOCALE) >+ char* old_locale; >+ old_locale=smb_xstrdup(nl_langinfo(CODESET)); >+ setlocale(LC_CTYPE,""); >+#endif >+ > d_printf("Looking up status of %s\n",inet_ntoa(ip)); > make_nmb_name(&nname, name, type); > status = node_status_query(fd,&nname,ip, &count, &extra); >@@ -125,6 +131,13 @@ > } else { > d_printf("No reply from %s\n\n",inet_ntoa(ip)); > } >+#if defined(HAVE_NL_LANGINFO) && defined(CODESET) && defined(HAVE_SETLOCALE) >+ if (old_locale){ >+ setlocale(LC_CTYPE,old_locale); >+ free(old_locale); >+ } >+#endif >+ > } > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1939
: 1906 |
2758