/*
- * $Id: megatron.c,v 1.7 2002-01-04 04:45:47 sibaz Exp $
+ * $Id: megatron.c,v 1.9 2002-04-29 01:52:49 morgana Exp $
*/
#ifdef HAVE_CONFIG_H
#include <ctype.h>
#include <stdio.h>
#include <string.h>
-#include <atalk/logger.h>
#include <netatalk/endian.h>
#include "asingle.h"
#include "megatron.h"
*/
memset( &fh, 0, sizeof( fh ));
- if ( from_open( module, path, &fh ) < 0 ) {
+ if ( from_open( module, path, &fh, flags ) < 0 ) {
return( -1 );
}
flags |= OPTION_STDOUT;
continue;
}
-
+ if (strcmp(argv[c], "--euc") == 0) {
+ flags |= OPTION_EUCJP;
+ continue;
+ }
+ if (strcmp(argv[c], "--sjis") == 0) {
+ flags |= OPTION_SJIS;
+ continue;
+ }
rc = megatron( argv[ c ], module, newname, flags);
if ( rc != 0 ) {
rv = rc;