Handle locale settings.
This commit is contained in:
parent
f20df109a6
commit
8cb4bb619d
1 changed files with 6 additions and 0 deletions
|
@ -15,6 +15,8 @@
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
|
|
||||||
|
$Id: genauth.c,v 1.7 2000/05/31 18:21:27 zarq Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
@ -37,6 +39,10 @@ int main(int argc, char **argv)
|
||||||
int bits, c, i, bytes;
|
int bits, c, i, bytes;
|
||||||
unsigned char *p;
|
unsigned char *p;
|
||||||
|
|
||||||
|
setlocale (LC_ALL, "");
|
||||||
|
bindtextdomain (PACKAGE, LOCALEDIR);
|
||||||
|
textdomain (PACKAGE);
|
||||||
|
|
||||||
if(argc > 2 || (argc == 2 && (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help"))))
|
if(argc > 2 || (argc == 2 && (!strcmp(argv[1], "-h") || !strcmp(argv[1], "--help"))))
|
||||||
{
|
{
|
||||||
fprintf(stderr, _("Usage: %s bits\n"), argv[0]);
|
fprintf(stderr, _("Usage: %s bits\n"), argv[0]);
|
||||||
|
|
Loading…
Reference in a new issue