1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
|
require 'formula'
class Fdclone < Formula
homepage 'http://hp.vector.co.jp/authors/VA012337/soft/fd/'
url 'http://hp.vector.co.jp/authors/VA012337/soft/fd/FD-3.01b.tar.gz'
sha1 '01a0174d0409a246c2caf34e901a1d51f9e45519'
depends_on 'nkf' => :build
patch :DATA
def install
ENV.j1
system "make", "PREFIX=#{prefix}", "all"
system "make", "MANTOP=#{man}", "install"
%w(README FAQ HISTORY LICENSES TECHKNOW ToAdmin).each do |file|
system "nkf", "-w", "--overwrite", file
prefix.install "#{file}.eng" => file
prefix.install file => "#{file}.ja"
end
share.install "_fdrc" => "fd2rc.dist"
end
def caveats; <<-EOS.undent
To install the initial config file:
install -c -m 0644 #{share}/fd2rc.dist ~/.fd2rc
To set application messages to Japanese, edit your .fd2rc:
MESSAGELANG="ja"
EOS
end
end
__END__
diff --git a/machine.h b/machine.h
index 8bc70ab..39b0d28 100644
--- a/machine.h
+++ b/machine.h
@@ -1449,4 +1449,6 @@ typedef unsigned long u_long;
#define GETTODARGS 2
#endif
+#define USEDATADIR
+
#endif /* !__MACHINE_H_ */
diff --git a/custom.c b/custom.c
index d7a995f..45b96c6 100644
--- a/custom.c
+++ b/custom.c
@@ -566,7 +566,7 @@ static CONST envtable envlist[] = {
{"FD_URLKCODE", &urlkcode, DEFVAL(NOCNV), URLKC_E, T_KNAM},
#endif
#if !defined (_NOENGMES) && !defined (_NOJPNMES)
- {"FD_MESSAGELANG", &messagelang, DEFVAL(NOCNV), MESL_E, T_MESLANG},
+ {"FD_MESSAGELANG", &messagelang, DEFVAL("C"), MESL_E, T_MESLANG},
#endif
#ifdef DEP_FILECONV
{"FD_SJISPATH", &sjispath, DEFVAL(SJISPATH), SJSP_E, T_KPATHS},
@@ -862,7 +862,9 @@ int no;
#if defined (DEP_KCONV) || (!defined (_NOENGMES) && !defined (_NOJPNMES))
case T_MESLANG:
# ifndef _NOCATALOG
+ if (!cp) cp = def_str(no);
catname = cp;
+ chkcatalog();
/*FALLTHRU*/
# endif
case T_KIN:
diff --git a/fd.h b/fd.h
index 08de84b..63cdaeb 100644
--- a/fd.h
+++ b/fd.h
@@ -104,16 +104,16 @@ extern char *_mtrace_file;
* variables nor run_com file nor command line option *
****************************************************************/
#define BASICCUSTOM 0
-#define SORTTYPE 0
-#define DISPLAYMODE 0
-#define SORTTREE 0
+#define SORTTYPE 1
+#define DISPLAYMODE 3
+#define SORTTREE 1
#define WRITEFS 0
#define IGNORECASE 0
#define VERSIONCOMP 0
#define INHERITCOPY 0
#define PROGRESSBAR 0
#define PRECOPYMENU 0
-#define ADJTTY 0
+#define ADJTTY 1
#define USEGETCURSOR 0
#define DEFCOLUMNS 2
#define MINFILENAME 12
@@ -155,7 +155,7 @@ extern char *_mtrace_file;
#define FREQFILE "~/.fd_freq"
#endif /* !MSDOS */
#define FREQUMASK 022
-#define ANSICOLOR 0
+#define ANSICOLOR 1
#define ANSIPALETTE ""
#define EDITMODE "emacs"
#define LOOPCURSOR 0
@@ -193,7 +193,7 @@ extern char *_mtrace_file;
#define HTTPPROXY ""
#define HTTPLOGFILE ""
#define HTMLLOGFILE ""
-#define UNICODEBUFFER 0
+#define UNICODEBUFFER 1
#define SJISPATH ""
#define EUCPATH ""
#define JISPATH ""
diff --git a/_fdrc b/_fdrc
index 97aec7b..0a81bb9 100644
--- a/_fdrc
+++ b/_fdrc
@@ -7,8 +7,8 @@
#BASICCUSTOM=0
# default sort type
-# 0: not sort (Default)
-# 1: alphabetical 9: alphabetical (reversal)
+# 0: not sort
+# 1: alphabetical (Default) 9: alphabetical (reversal)
# 2: extension 10: extension (reversal)
# 3: size 11: size (reversal)
# 4: date 12: date (reversal)
@@ -16,23 +16,23 @@
# 100-113: preserve previous sort type
# 200-213: preserve previous sort type also in the archive browser
# (the least 2 digits are effective just after initialize)
-#SORTTYPE=0
+#SORTTYPE=1
# default display mode
-# 0: normal (Default)
+# 0: normal
# 1: sym-link status
# 2: file type symbol
-# 3: sym-link status & file type symbol
+# 3: sym-link status & file type symbol (Default)
# 4: invisible dot file
# 5: sym-link status & invisible dot file
# 6: file type symbol & invisible dot file
# 7: sym-link status & file type symbol & invisible dot file
-#DISPLAYMODE=0
+#DISPLAYMODE=3
# whether if sort or not in tree mode
-# 0: not sort (Default)
-# >= 1: sort according to SORTTYPE
-#SORTTREE=0
+# 0: not sort
+# >= 1: sort according to SORTTYPE (Default)
+#SORTTREE=1
# behavior about writing over directory on file system
# 0: confirm to write or not, after directory arranged (Default)
@@ -61,9 +61,9 @@
#PRECOPYMENU=0
# whether if adjust tty or not when exiting
-# 0: not adjust (Default)
-# >= 1: adjust
-#ADJTTY=0
+# 0: not adjust
+# >= 1: adjust (Default)
+#ADJTTY=1
# whether if prioritize VT100 escape sequence or not for getting terminal size
# 0: not prioritize (Default)
@@ -179,11 +179,11 @@
#FREQUMASK=022
# whether if support ANSI color escape sequence
-# 0: monochrome (Default)
-# 1: color
+# 0: monochrome
+# 1: color (Default)
# 2: color & force background to blacken
# 3: color & force foreground to blacken
-#ANSICOLOR=0
+#ANSICOLOR=1
# color palette in the ANSI color mode
# Default: none
@@ -374,9 +374,9 @@
#HTMLLOGFILE=""
# whether if hold the UNICODE translation table on memory
-# 0: not hold (Default)
-# >= 1: hold
-#UNICODEBUFFER=0
+# 0: not hold
+# >= 1: hold (Default)
+#UNICODEBUFFER=1
# language code to be displayed
# Default: No convert
|