• R/O
  • SSH
  • HTTPS

ttssh2: 提交


Commit MetaInfo

修订版8318 (tree)
时间2019-10-18 00:08:34
作者zmatsuo

Log Message

Unicode版lngファイル

- installer/release/lang/ -> installer/release/lang_utf8/

- installer/release/lang_utf8/ のファイルの文字コードを utf-8 BOM とした
- 今後 lang_utf8/ を保守する
- utf8 が文字コード的に一番扱いやすいため

- installer/makelang.bat (utf8_to.pl) で Tera Term が使用する文字コードに変換

- installer/release/lang/ (従来と同じ ANSI版)
- installer/release/lang_utf16le/ (Unicode版lngファイル)

更改概述

差异

--- branches/unicode_buf/installer/CMakeLists.txt (revision 8317)
+++ branches/unicode_buf/installer/CMakeLists.txt (revision 8318)
@@ -4,6 +4,7 @@
44 DESTINATION .
55 PATTERN *~ EXCLUDE
66 PATTERN TERATERM.INI EXCLUDE
7+ PATTERN lang_utf8 EXCLUDE
78 )
89
910 install(
@@ -45,3 +46,151 @@
4546 DESTINATION .
4647 )
4748
49+set(RELEASE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/release)
50+
51+add_custom_target(
52+ lang_conv ALL
53+ DEPENDS
54+ ${RELEASE_DIR}/lang_utf16le/Default.lng
55+ ${RELEASE_DIR}/lang_utf16le/English.lng
56+ ${RELEASE_DIR}/lang_utf16le/French.lng
57+ ${RELEASE_DIR}/lang_utf16le/German.lng
58+ ${RELEASE_DIR}/lang_utf16le/Japanese.lng
59+ ${RELEASE_DIR}/lang_utf16le/Korean.lng
60+ ${RELEASE_DIR}/lang_utf16le/Russian.lng
61+ "${RELEASE_DIR}/lang_utf16le/Simplified Chinese.lng"
62+ "${RELEASE_DIR}/lang_utf16le/Traditional Chinese.lng"
63+ ${RELEASE_DIR}/lang/Default.lng
64+ ${RELEASE_DIR}/lang/English.lng
65+ ${RELEASE_DIR}/lang/French.lng
66+ ${RELEASE_DIR}/lang/German.lng
67+ ${RELEASE_DIR}/lang/Japanese.lng
68+ ${RELEASE_DIR}/lang/Korean.lng
69+ ${RELEASE_DIR}/lang/Russian.lng
70+ "${RELEASE_DIR}/lang/Simplified Chinese.lng"
71+ "${RELEASE_DIR}/lang/Traditional Chinese.lng"
72+ SOURCES
73+ ${RELEASE_DIR}/lang_utf8/Default.lng
74+ ${RELEASE_DIR}/lang_utf8/English.lng
75+ ${RELEASE_DIR}/lang_utf8/French.lng
76+ ${RELEASE_DIR}/lang_utf8/German.lng
77+ ${RELEASE_DIR}/lang_utf8/Japanese.lng
78+ ${RELEASE_DIR}/lang_utf8/Korean.lng
79+ ${RELEASE_DIR}/lang_utf8/Russian.lng
80+ "${RELEASE_DIR}/lang_utf8/Simplified Chinese.lng"
81+ "${RELEASE_DIR}/lang_utf8/Traditional Chinese.lng"
82+ )
83+
84+add_custom_command(
85+ OUTPUT
86+ ${RELEASE_DIR}/lang_utf16le/Default.lng
87+ ${RELEASE_DIR}/lang_utf16le/English.lng
88+ ${RELEASE_DIR}/lang_utf16le/French.lng
89+ ${RELEASE_DIR}/lang_utf16le/German.lng
90+ ${RELEASE_DIR}/lang_utf16le/Japanese.lng
91+ ${RELEASE_DIR}/lang_utf16le/Korean.lng
92+ ${RELEASE_DIR}/lang_utf16le/Russian.lng
93+ "${RELEASE_DIR}/lang_utf16le/Simplified Chinese.lng"
94+ "${RELEASE_DIR}/lang_utf16le/Traditional Chinese.lng"
95+ ${RELEASE_DIR}/lang/Default.lng
96+ ${RELEASE_DIR}/lang/English.lng
97+ ${RELEASE_DIR}/lang/French.lng
98+ ${RELEASE_DIR}/lang/German.lng
99+ ${RELEASE_DIR}/lang/Japanese.lng
100+ ${RELEASE_DIR}/lang/Korean.lng
101+ ${RELEASE_DIR}/lang/Russian.lng
102+ "${RELEASE_DIR}/lang/Simplified Chinese.lng"
103+ "${RELEASE_DIR}/lang/Traditional Chinese.lng"
104+ COMMAND ${CMAKE_COMMAND} -E make_directory ${RELEASE_DIR}/lang_utf16le
105+ COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/utf8_to.pl utf16le ${RELEASE_DIR}/lang_utf8/Default.lng ${RELEASE_DIR}/lang_utf16le/Default.lng
106+ COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/utf8_to.pl utf16le ${RELEASE_DIR}/lang_utf8/English.lng ${RELEASE_DIR}/lang_utf16le/English.lng
107+ COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/utf8_to.pl utf16le ${RELEASE_DIR}/lang_utf8/French.lng ${RELEASE_DIR}/lang_utf16le/French.lng
108+ COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/utf8_to.pl utf16le ${RELEASE_DIR}/lang_utf8/German.lng ${RELEASE_DIR}/lang_utf16le/German.lng
109+ COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/utf8_to.pl utf16le ${RELEASE_DIR}/lang_utf8/Japanese.lng ${RELEASE_DIR}/lang_utf16le/Japanese.lng
110+ COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/utf8_to.pl utf16le ${RELEASE_DIR}/lang_utf8/Korean.lng ${RELEASE_DIR}/lang_utf16le/Korean.lng
111+ COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/utf8_to.pl utf16le ${RELEASE_DIR}/lang_utf8/Russian.lng ${RELEASE_DIR}/lang_utf16le/Russian.lng
112+ COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/utf8_to.pl utf16le "${RELEASE_DIR}/lang_utf8/Simplified Chinese.lng" "${RELEASE_DIR}/lang_utf16le/Simplified Chinese.lng"
113+ COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/utf8_to.pl utf16le "${RELEASE_DIR}/lang_utf8/Traditional Chinese.lng" "${RELEASE_DIR}/lang_utf16le/Traditional Chinese.lng"
114+ COMMAND ${CMAKE_COMMAND} -E make_directory ${RELEASE_DIR}/lang
115+ COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/utf8_to.pl cp1252 ${RELEASE_DIR}/lang_utf8/Default.lng ${RELEASE_DIR}/lang/Default.lng
116+ COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/utf8_to.pl cp1252 ${RELEASE_DIR}/lang_utf8/English.lng ${RELEASE_DIR}/lang/English.lng
117+ COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/utf8_to.pl cp1252 ${RELEASE_DIR}/lang_utf8/French.lng ${RELEASE_DIR}/lang/French.lng
118+ COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/utf8_to.pl cp1252 ${RELEASE_DIR}/lang_utf8/German.lng ${RELEASE_DIR}/lang/German.lng
119+ COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/utf8_to.pl cp932 ${RELEASE_DIR}/lang_utf8/Japanese.lng ${RELEASE_DIR}/lang/Japanese.lng
120+ COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/utf8_to.pl cp949 ${RELEASE_DIR}/lang_utf8/Korean.lng ${RELEASE_DIR}/lang/Korean.lng
121+ COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/utf8_to.pl windows-1251 ${RELEASE_DIR}/lang_utf8/Russian.lng ${RELEASE_DIR}/lang/Russian.lng
122+ COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/utf8_to.pl cp936 "${RELEASE_DIR}/lang_utf8/Simplified Chinese.lng" "${RELEASE_DIR}/lang/Simplified Chinese.lng"
123+ COMMAND ${PERL} ${CMAKE_CURRENT_SOURCE_DIR}/utf8_to.pl cp950 "${RELEASE_DIR}/lang_utf8/Traditional Chinese.lng" "${RELEASE_DIR}/lang/Traditional Chinese.lng"
124+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${RELEASE_DIR}/lang ${CMAKE_BINARY_DIR}/$<CONFIG>/lang
125+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${RELEASE_DIR}/lang_utf16le ${CMAKE_BINARY_DIR}/$<CONFIG>/lang_utf16le
126+ )
127+
128+
129+# copy .lng files
130+if(MSVC AND ("${MSVC_VERSION}" GREATER_EQUAL "1910"))
131+ # Visual Studio 2017以上の時
132+ add_custom_target(
133+ lang_copy ALL
134+ DEPENDS
135+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang/Default.lng"
136+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang/English.lng"
137+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang/French.lng"
138+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang/German.lng"
139+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang/Japanese.lng"
140+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang/Korean.lng"
141+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang/Russian.lng"
142+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang/Simplified Chinese.lng"
143+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang/Traditional Chinese.lng"
144+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/Default.lng"
145+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/English.lng"
146+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/French.lng"
147+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/German.lng"
148+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/Japanese.lng"
149+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/Korean.lng"
150+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/Russian.lng"
151+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/Simplified Chinese.lng"
152+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/Traditional Chinese.lng"
153+ SOURCE
154+ ${RELEASE_DIR}/lang_utf16le/Default.lng
155+ ${RELEASE_DIR}/lang_utf16le/English.lng
156+ ${RELEASE_DIR}/lang_utf16le/French.lng
157+ ${RELEASE_DIR}/lang_utf16le/German.lng
158+ ${RELEASE_DIR}/lang_utf16le/Japanese.lng
159+ ${RELEASE_DIR}/lang_utf16le/Korean.lng
160+ ${RELEASE_DIR}/lang_utf16le/Russian.lng
161+ "${RELEASE_DIR}/lang_utf16le/Simplified Chinese.lng"
162+ "${RELEASE_DIR}/lang_utf16le/Traditional Chinese.lng"
163+ ${RELEASE_DIR}/lang/Default.lng
164+ ${RELEASE_DIR}/lang/English.lng
165+ ${RELEASE_DIR}/lang/French.lng
166+ ${RELEASE_DIR}/lang/German.lng
167+ ${RELEASE_DIR}/lang/Japanese.lng
168+ ${RELEASE_DIR}/lang/Korean.lng
169+ ${RELEASE_DIR}/lang/Russian.lng
170+ "${RELEASE_DIR}/lang/Simplified Chinese.lng"
171+ "${RELEASE_DIR}/lang/Traditional Chinese.lng"
172+ )
173+ add_custom_command(
174+ OUTPUT
175+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang/Default.lng"
176+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang/English.lng"
177+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang/French.lng"
178+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang/German.lng"
179+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang/Japanese.lng"
180+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang/Korean.lng"
181+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang/Russian.lng"
182+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang/Simplified Chinese.lng"
183+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang/Traditional Chinese.lng"
184+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/Default.lng"
185+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/English.lng"
186+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/French.lng"
187+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/German.lng"
188+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/Japanese.lng"
189+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/Korean.lng"
190+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/Russian.lng"
191+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/Simplified Chinese.lng"
192+ "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/$(Configuration)/lang_utf16le/Traditional Chinese.lng"
193+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${RELEASE_DIR}/lang ${CMAKE_BINARY_DIR}/$<CONFIG>/lang
194+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${RELEASE_DIR}/lang_utf16le ${CMAKE_BINARY_DIR}/$<CONFIG>/lang_utf16le
195+ )
196+endif()
--- branches/unicode_buf/installer/build.bat (revision 8317)
+++ branches/unicode_buf/installer/build.bat (revision 8318)
@@ -199,6 +199,9 @@
199199 nmake -f cygtool.mak
200200 popd
201201
202+rem lng ファイルを作成
203+call makelang.bat
204+
202205 popd
203206 exit /b 0
204207
--- branches/unicode_buf/installer/makearchive.bat (revision 8317)
+++ branches/unicode_buf/installer/makearchive.bat (revision 8318)
@@ -92,6 +92,7 @@
9292 xcopy /s /e /y /i /exclude:archive-exclude.txt release\plugin %dst%\plugin
9393 rem xcopy /s /e /y /i /exclude:archive-exclude.txt release\Collector %dst%\Collector
9494 xcopy /s /e /y /i /exclude:archive-exclude.txt release\lang %dst%\lang
95+xcopy /s /e /y /i /exclude:archive-exclude.txt release\lang_utf16le %dst%\lang_utf16le
9596 del /f %dst%\lang\English.lng
9697 del /f %dst%\svnrev.exe
9798
--- branches/unicode_buf/installer/makelang.bat (nonexistent)
+++ branches/unicode_buf/installer/makelang.bat (revision 8318)
@@ -0,0 +1,22 @@
1+
2+if not exist release\lang_utf16le mkdir release\lang_utf16le
3+perl utf8_to.pl utf16le release/lang_utf8/Default.lng release/lang_utf16le/Default.lng
4+perl utf8_to.pl utf16le release/lang_utf8/English.lng release/lang_utf16le/English.lng
5+perl utf8_to.pl utf16le release/lang_utf8/French.lng release/lang_utf16le/French.lng
6+perl utf8_to.pl utf16le release/lang_utf8/German.lng release/lang_utf16le/German.lng
7+perl utf8_to.pl utf16le release/lang_utf8/Japanese.lng release/lang_utf16le/Japanese.lng
8+perl utf8_to.pl utf16le release/lang_utf8/Korean.lng release/lang_utf16le/Korean.lng
9+perl utf8_to.pl utf16le release/lang_utf8/Russian.lng release/lang_utf16le/Russian.lng
10+perl utf8_to.pl utf16le "release/lang_utf8/Simplified Chinese.lng" "release/lang_utf16le/Simplified Chinese.lng"
11+perl utf8_to.pl utf16le "release/lang_utf8/Traditional Chinese.lng" "release/lang_utf16le/Traditional Chinese.lng"
12+
13+if not exist release\lang mkdir release\lang
14+perl utf8_to.pl cp1252 release/lang_utf8/Default.lng release/lang/Default.lng
15+perl utf8_to.pl cp1252 release/lang_utf8/English.lng release/lang/English.lng
16+perl utf8_to.pl cp1252 release/lang_utf8/French.lng release/lang/French.lng
17+perl utf8_to.pl cp1252 release/lang_utf8/German.lng release/lang/German.lng
18+perl utf8_to.pl cp932 release/lang_utf8/Japanese.lng release/lang/Japanese.lng
19+perl utf8_to.pl cp949 release/lang_utf8/Korean.lng release/lang/Korean.lng
20+perl utf8_to.pl windows-1251 release/lang_utf8/Russian.lng release/lang/Russian.lng
21+perl utf8_to.pl cp936 "release/lang_utf8/Simplified Chinese.lng" "release/lang/Simplified Chinese.lng"
22+perl utf8_to.pl cp950 "release/lang_utf8/Traditional Chinese.lng" "release/lang/Traditional Chinese.lng"
--- branches/unicode_buf/installer/release/lang/convert.sh (revision 8317)
+++ branches/unicode_buf/installer/release/lang/convert.sh (nonexistent)
@@ -1,44 +0,0 @@
1-# ansi -> utf-8
2-mkdir utf8
3-echo -ne '\xEF\xBB\xBF' > utf8/default.lng
4-iconv -c -t utf-8 -f CP1252 default.lng >> utf8/default.lng
5-echo -ne '\xEF\xBB\xBF' > utf8/english.lng
6-iconv -c -t utf-8 -f CP1252 english.lng >> utf8/english.lng
7-echo -ne '\xEF\xBB\xBF' > utf8/French.lng
8-iconv -c -t utf-8 -f CP1252 French.lng >> utf8/French.lng
9-echo -ne '\xEF\xBB\xBF' > utf8/German.lng
10-iconv -c -t utf-8 -f CP1252 German.lng >> utf8/German.lng
11-echo -ne '\xEF\xBB\xBF' > utf8/Japanese.lng
12-iconv -c -t utf-8 -f CP932 Japanese.lng >> utf8/Japanese.lng
13-echo -ne '\xEF\xBB\xBF' > utf8/Korean.lng
14-iconv -c -t utf-8 -f CP949 Korean.lng >> utf8/Korean.lng
15-echo -ne '\xEF\xBB\xBF' > utf8/Russian.lng
16-iconv -c -t utf-8 -f windows-1251 Russian.lng >> utf8/Russian.lng
17-echo -ne '\xEF\xBB\xBF' > "utf8/Simplified Chinese.lng"
18-iconv -c -t utf-8 -f CP936 "Simplified Chinese.lng" >> "utf8/Simplified Chinese.lng"
19-echo -ne '\xEF\xBB\xBF' > "utf8/Traditional Chinese.lng"
20-iconv -c -t utf-8 -f CP950 "Traditional Chinese.lng" >> "utf8/Traditional Chinese.lng"
21-
22-# utf-8 -> ansi
23-mkdir ansi
24-iconv -c -f utf-8 -t CP1252 utf8/default.lng > ansi/default.lng
25-iconv -c -f utf-8 -t CP1252 utf8/english.lng > ansi/english.lng
26-iconv -c -f utf-8 -t CP1252 utf8/French.lng > ansi/French.lng
27-iconv -c -f utf-8 -t CP1252 utf8/German.lng > ansi/German.lng
28-iconv -c -f utf-8 -t CP932 utf8/Japanese.lng > ansi/Japanese.lng
29-iconv -c -f utf-8 -t CP949 utf8/Korean.lng > ansi/Korean.lng
30-iconv -c -f utf-8 -t windows-1251 utf8/Russian.lng > ansi/Russian.lng
31-iconv -c -f utf-8 -t CP936 "utf8/Simplified Chinese.lng" > "ansi/Simplified Chinese.lng"
32-iconv -c -f utf-8 -t CP950 "utf8/Traditional Chinese.lng" > "ansi/Traditional Chinese.lng"
33-
34-# utf-8 -> utf-16le
35-mkdir utf16le
36-iconv -c -f utf-8 -t utf-16le utf8/default.lng > utf16le/default.lng
37-iconv -c -f utf-8 -t utf-16le utf8/english.lng > utf16le/english.lng
38-iconv -c -f utf-8 -t utf-16le utf8/French.lng > utf16le/French.lng
39-iconv -c -f utf-8 -t utf-16le utf8/German.lng > utf16le/German.lng
40-iconv -c -f utf-8 -t utf-16le utf8/Japanese.lng > utf16le/Japanese.lng
41-iconv -c -f utf-8 -t utf-16le utf8/Korean.lng > utf16le/Korean.lng
42-iconv -c -f utf-8 -t utf-16le utf8/Russian.lng > utf16le/Russian.lng
43-iconv -c -f utf-8 -t utf-16le "utf8/Simplified Chinese.lng" > "utf16le/Simplified Chinese.lng"
44-iconv -c -f utf-8 -t utf-16le "utf8/Traditional Chinese.lng" > "utf16le/Traditional Chinese.lng"
--- branches/unicode_buf/installer/utf8_to.pl (nonexistent)
+++ branches/unicode_buf/installer/utf8_to.pl (revision 8318)
@@ -0,0 +1,18 @@
1+use utf8;
2+
3+my $code = $ARGV[0];
4+my $in = $ARGV[1];
5+my $out = $ARGV[2];
6+
7+open(INP, "<:utf8", $in) or die("error :$! $in");
8+open(OUT, ">:encoding($code)", $out) or die("error :$! $out");
9+
10+my $line = 1;
11+while (<INP>) {
12+ if ($line == 1 && $code !~ /utf/) {
13+ # remove BOM
14+ s/^\x{FEFF}//;
15+ }
16+ print OUT;
17+ $line++;
18+}
--- branches/unicode_buf/teraterm/teraterm/CMakeLists.txt (revision 8317)
+++ branches/unicode_buf/teraterm/teraterm/CMakeLists.txt (revision 8318)
@@ -222,63 +222,6 @@
222222 ttptek
223223 )
224224
225-# copy .lng files
226-if(MSVC AND ("${MSVC_VERSION}" GREATER_EQUAL "1910"))
227- # Visual Studio 2017以上の時
228- add_custom_target(
229- copy_lang ALL
230- DEPENDS
231- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/Default.lng"
232- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/English.lng"
233- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/French.lng"
234- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/German.lng"
235- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/Japanese.lng"
236- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/Korean.lng"
237- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/Russian.lng"
238- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/Simplified Chinese.lng"
239- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/Traditional Chinese.lng"
240- )
241- add_custom_command(
242- OUTPUT
243- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/Default.lng"
244- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/English.lng"
245- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/French.lng"
246- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/German.lng"
247- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/Japanese.lng"
248- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/Korean.lng"
249- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/Russian.lng"
250- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/Simplified Chinese.lng"
251- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/Traditional Chinese.lng"
252- COMMAND ${CMAKE_COMMAND} -E copy
253- "${CMAKE_SOURCE_DIR}/installer/release/lang/Default.lng"
254- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/Default.lng"
255- COMMAND ${CMAKE_COMMAND} -E copy
256- "${CMAKE_SOURCE_DIR}/installer/release/lang/English.lng"
257- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/English.lng"
258- COMMAND ${CMAKE_COMMAND} -E copy
259- "${CMAKE_SOURCE_DIR}/installer/release/lang/French.lng"
260- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/French.lng"
261- COMMAND ${CMAKE_COMMAND} -E copy
262- "${CMAKE_SOURCE_DIR}/installer/release/lang/German.lng"
263- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/German.lng"
264- COMMAND ${CMAKE_COMMAND} -E copy
265- "${CMAKE_SOURCE_DIR}/installer/release/lang/Japanese.lng"
266- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/Japanese.lng"
267- COMMAND ${CMAKE_COMMAND} -E copy
268- "${CMAKE_SOURCE_DIR}/installer/release/lang/Korean.lng"
269- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/Korean.lng"
270- COMMAND ${CMAKE_COMMAND} -E copy
271- "${CMAKE_SOURCE_DIR}/installer/release/lang/Russian.lng"
272- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/Russian.lng"
273- COMMAND ${CMAKE_COMMAND} -E copy
274- "${CMAKE_SOURCE_DIR}/installer/release/lang/Simplified Chinese.lng"
275- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/Simplified Chinese.lng"
276- COMMAND ${CMAKE_COMMAND} -E copy
277- "${CMAKE_SOURCE_DIR}/installer/release/lang/Traditional Chinese.lng"
278- "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}$(Configuration)/lang/Traditional Chinese.lng"
279- )
280-endif()
281-
282225 ####
283226 configure_file(
284227 svnversion.h.in
Show on old repository browser