diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-29 09:11:47 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-29 09:11:47 +0100 |
commit | 2edba21f4c59d071f2241c2f47021c7034ec7cb8 (patch) | |
tree | 6cf3de29bfbdafa26fddbc1cd3dc467a2d8263f6 /Config.in | |
parent | 083e172641b64c564b7ec5478197dccbde43b421 (diff) | |
download | busybox-w32-2edba21f4c59d071f2241c2f47021c7034ec7cb8.tar.gz busybox-w32-2edba21f4c59d071f2241c2f47021c7034ec7cb8.tar.bz2 busybox-w32-2edba21f4c59d071f2241c2f47021c7034ec7cb8.zip |
more fine-grained Unicode support
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'Config.in')
-rw-r--r-- | Config.in | 51 |
1 files changed, 51 insertions, 0 deletions
@@ -141,6 +141,57 @@ config FEATURE_CHECK_UNICODE_IN_ENV | |||
141 | 141 | ||
142 | Otherwise, Unicode support will be always enabled and active. | 142 | Otherwise, Unicode support will be always enabled and active. |
143 | 143 | ||
144 | config SUBST_WCHAR | ||
145 | int "Character code to substitute unprintable characters with" | ||
146 | range 1 4294967295 | ||
147 | depends on FEATURE_ASSUME_UNICODE | ||
148 | default 63 | ||
149 | help | ||
150 | Typical values are 63 for '?' (works with any output device), | ||
151 | 30 for ASCII substitute control code, | ||
152 | 65533 (0xfffd) for Unicode replacement character. | ||
153 | |||
154 | config LAST_SUPPORTED_WCHAR | ||
155 | int "Range of supported Unicode characters" | ||
156 | range 0 4294967295 | ||
157 | depends on FEATURE_ASSUME_UNICODE | ||
158 | default 767 | ||
159 | help | ||
160 | Any character with Unicode value bigger than this is assumed | ||
161 | to be non-printable on output device. Many applets replace | ||
162 | such chars with substitution character. | ||
163 | |||
164 | The idea is that many valid printable Unicode chars are | ||
165 | nevertheless are not displayed correctly. Think about | ||
166 | combining charachers, double-wide hieroglyphs and such. | ||
167 | Many terminals, xterms and such will fail to handle them | ||
168 | correctly. | ||
169 | |||
170 | Typical values are: | ||
171 | 126 - ASCII only | ||
172 | 767 (0x2ff) - there are no combining chars in [0..767] range | ||
173 | (the range includes Latin 1, Latin Ext. A and B), | ||
174 | code is ~700 bytes smaller for this case. | ||
175 | 4351 (0x10ff) - there are no double-wide chars in [0..4351] range, | ||
176 | code is ~300 bytes smaller for this case. | ||
177 | 0 - off, any valid printable Unicode character will be printed. | ||
178 | |||
179 | config UNICODE_COMBINING_WCHARS | ||
180 | bool "Allow zero-width Unicode characters on output" | ||
181 | default n | ||
182 | depends on FEATURE_ASSUME_UNICODE | ||
183 | help | ||
184 | With this option off, any Unicode char with width of 0 | ||
185 | is substituted on output. | ||
186 | |||
187 | config UNICODE_WIDE_WCHARS | ||
188 | bool "Allow wide Unicode characters on output" | ||
189 | default n | ||
190 | depends on FEATURE_ASSUME_UNICODE | ||
191 | help | ||
192 | With this option off, any Unicode char with width > 1 | ||
193 | is substituted on output. | ||
194 | |||
144 | config LONG_OPTS | 195 | config LONG_OPTS |
145 | bool "Support for --long-options" | 196 | bool "Support for --long-options" |
146 | default y | 197 | default y |