Support ja_JP.eucJP locale.

PR:		ports/43432
Submitted by:	Saito Tomokatsu <saito@a2z.co.jp>
This commit is contained in:
Jun Kuriyama 2002-10-19 14:09:49 +00:00
parent 215f971b4c
commit cc72479c9d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=68346
2 changed files with 29 additions and 20 deletions

View file

@ -7,6 +7,7 @@
PORTNAME?= xpbiff
PORTVERSION?= 1.27
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= ftp://ftp.ics.es.osaka-u.ac.jp/pub/xpbiff/
DISTNAME= xpbiff

View file

@ -1,5 +1,5 @@
--- xpbiff.c.orig Wed Oct 26 23:42:52 1994
+++ xpbiff.c Sun Sep 8 03:16:26 2002
--- xpbiff.c.orig Thu Oct 27 15:42:52 1994
+++ xpbiff.c Sat Sep 28 01:37:19 2002
@@ -74,6 +74,12 @@
#endif
#endif /* SUN_AUDIO */
@ -66,7 +66,15 @@
{"-sndfile", "*mailSndFile", XrmoptionSepArg, NULL},
{"-volume", "*volume", XrmoptionSepArg, NULL},
#endif
@@ -485,9 +497,9 @@
@@ -461,6 +473,7 @@
#ifdef JCONVERT
static Locale_ent locale_list[] = {
{"ja_JP.EUC", EUC},
+ {"ja_JP.eucJP", EUC},
{"ja_JP.SJIS", SJIS},
{"ja_JP.jis7", JIS},
{"ja_JP.jis8", JIS},
@@ -485,9 +498,9 @@
XGCValues values;
XtTranslations newTranslations;
static XtActionsRec redrawActions[] = {
@ -79,7 +87,7 @@
};
static char *overrideTranslations =
@@ -498,6 +510,9 @@
@@ -498,6 +511,9 @@
int dummy;
int i;
@ -89,7 +97,7 @@
#ifdef JCONVERT
char *locale_name;
Locale_ent *p;
@@ -514,28 +529,40 @@
@@ -514,28 +530,40 @@
#endif /* !YOUBIN */
#ifdef YOUBIN
@ -145,7 +153,7 @@
#endif /* !YOUBIN */
#ifdef XI18N
@@ -646,7 +673,7 @@
@@ -646,7 +674,7 @@
fprintf(stderr, " [-server host]\n");
fprintf(stderr, " [-nopreserve]\n");
#endif
@ -154,7 +162,7 @@
fprintf(stderr, " [-sndfile audio_file]\n");
fprintf(stderr, " [-volume percentage]\n");
#endif
@@ -775,7 +802,7 @@
@@ -775,7 +803,7 @@
/* Interval timer start */
#ifndef YOUBIN
polling_id = XtAppAddTimeOut(app_con,
@ -163,7 +171,7 @@
#else /* YOUBIN */
if (server == NULL) {
gethostname(serv_name, sizeof(serv_name));
@@ -931,7 +958,7 @@
@@ -931,7 +959,7 @@
PopupMailHeader(mail_header);
XSync(XtDisplay(toplevel), 0);
if (bell == True)
@ -172,7 +180,7 @@
/* XBell(XtDisplay(toplevel), 0); */
}
else if (file_stat.st_size > mail_size) {
@@ -955,7 +982,8 @@
@@ -955,7 +983,8 @@
PopupMailHeader(mail_header);
XSync(XtDisplay(toplevel), 0);
if (bell == True)
@ -182,7 +190,7 @@
}
else {
mail_size = file_stat.st_size;
@@ -982,7 +1010,7 @@
@@ -982,7 +1011,7 @@
/* No arrive */
polling_id = XtAppAddTimeOut(XtWidgetToApplicationContext(toplevel),
@ -191,7 +199,7 @@
}
#endif /* !YOUBIN */
@@ -1071,7 +1099,7 @@
@@ -1071,7 +1100,7 @@
if (popdown == True) {
popdown_button = XtCreateManagedWidget("popdown_button", commandWidgetClass, info_base, NULL,
ZERO);
@ -200,7 +208,7 @@
}
arg_count = 0;
XtSetArg(args[arg_count], XtNlabel, head);
@@ -1147,7 +1175,8 @@
@@ -1147,7 +1176,8 @@
PopupMailHeader(mail_header);
XSync(XtDisplay(toplevel), 0);
if (bell == True)
@ -210,7 +218,7 @@
}
else {
mail_size = file_stat.st_size;
@@ -1169,7 +1198,7 @@
@@ -1169,7 +1199,7 @@
XtRemoveTimeOut(polling_id);
polling_id = XtAppAddTimeOut(XtWidgetToApplicationContext(toplevel),
@ -219,7 +227,7 @@
}
#endif /* !YOUBIN */
@@ -1749,13 +1778,22 @@
@@ -1749,13 +1779,22 @@
static void beep (display)
Display *display;
{
@ -245,7 +253,7 @@
if (mail_sndfile) {
audiofd = open( "/dev/audio", O_WRONLY | O_NDELAY );
if (audiofd < 0)
@@ -1766,6 +1804,7 @@
@@ -1766,6 +1805,7 @@
return;
}
@ -253,7 +261,7 @@
if( ioctl( audiofd, AUDIO_GETINFO, &ais ) )
{
fprintf(stderr, "%s: Problem retrieving /dev/audio info.\n",
@@ -1782,6 +1821,24 @@
@@ -1782,6 +1822,24 @@
return;
}
@ -278,7 +286,7 @@
filefd = open(mail_sndfile, O_RDONLY);
if (filefd < 0)
{
@@ -1791,6 +1848,7 @@
@@ -1791,6 +1849,7 @@
return;
}
@ -286,7 +294,7 @@
/* Read in the audio header */
rn = read(filefd, buf, sizeof(Audio_filehdr));
@@ -1841,12 +1899,28 @@
@@ -1841,12 +1900,28 @@
usleep(1000);
}
}
@ -318,7 +326,7 @@
XBell (display, 0);
#endif /* SUN_AUDIO */
return;
@@ -1917,12 +1991,12 @@
@@ -1917,12 +1992,12 @@
if (popup_time)
XtAppAddTimeOut(XtWidgetToApplicationContext(toplevel),
@ -333,7 +341,7 @@
}
} else if (mail_size < saved_mail_size){
/* No mail */
@@ -2031,7 +2105,7 @@
@@ -2031,7 +2106,7 @@
}
if (popup_time)
XtAppAddTimeOut(XtWidgetToApplicationContext(toplevel),