openbsd-ports/japanese/Wnn/patches/patch-Wnn_jutil_wnnstat_c
espie e8c9eaf450 Loads of changes, not quite finished yet.
- format man pages using new jgroff, so that we can install a full set
of documentation.
- move INSTALL script into a separate script, so that adding a new user
need not be done at the time of INSTALL.
- add a few strlcpy to fix a few holes. This stuff is rather bad, though.
- use terminfo instead of termcap, for better keycap names, fixing quite
a few bugs that made it impossible to build that version along the way...
- move scripts into /usr/local/bin instead of /usr/local/bin/Wnn4.

- use @comment no checksum
in packing list, even though pkg_add does not support that yet.
Not quite completely ready, but getting there...
2000-04-16 21:53:26 +00:00

47 lines
1.5 KiB
Plaintext

$OpenBSD: patch-Wnn_jutil_wnnstat_c,v 1.1 2000/04/16 21:53:31 espie Exp $
--- Wnn/jutil/wnnstat.c.orig Thu Apr 13 20:41:34 2000
+++ Wnn/jutil/wnnstat.c Thu Apr 13 20:41:39 2000
@@ -69,7 +69,7 @@ struct wnn_ret_buf rb = {0, NULL};
#define W_DIC_ALL 5
#define W_VERSION 6
-#ifdef JAPANSE
+#ifdef JAPANESE
extern int eujis_to_jis8(), eujis_to_sjis();
#endif
#ifdef CHINESE
@@ -129,13 +129,13 @@ char **argv;
strcpy(lang, WNN_DEFAULT_LANG);
#ifdef JAPANESE
- while ((c = getopt(argc,argv,"EewdDfFUSJVL:K")) != EOF) {
+ while ((c = getopt(argc,argv,"weEdDfFUSJVL:")) != EOF) {
#endif
#ifdef CHINESE
- while ((c = getopt(argc,argv,"EewdDfFUBCVL:K")) != EOF) {
+ while ((c = getopt(argc,argv,"weEdDfFUBCVL:")) != EOF) {
#endif
# ifdef KOREAN
- while ((c = getopt(argc,argv,"EewdDfFUVL:K")) != EOF) {
+ while ((c = getopt(argc,argv,"weEdDfFUKVL:")) != EOF) {
#endif
switch(c){
case 'w':
@@ -317,13 +317,13 @@ static void
usage()
{
#ifdef JAPANESE
- fprintf(stderr, "wnnstat [-weEdDfFKSUJ] [-L lang_name] [server_name]\n");
+ fprintf(stderr, "wnnstat [-weEdDfFUSJV] [-L lang_name] [server_name]\n");
#endif /* JAPANESE */
#ifdef CHINESE
- fprintf(stderr, "wnnstat [-weEdDfFSUJBC] [-L lang_name] [server_name]\n");
+ fprintf(stderr, "wnnstat [-weEdDfFUBCV] [-L lang_name] [server_name]\n");
#endif /* CHINESE */
#ifdef KOREAN
- fprintf(stderr, "kwnnstat [-weEdDfFKU] [-L lang_name] [server_name]\n");
+ fprintf(stderr, "kwnnstat [-weEdDfFUKV] [-L lang_name] [server_name]\n");
#endif /* KOREAN */
exit(-1);
}