mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-07 11:41:16 +02:00
22095: more multibyte notes.
This commit is contained in:
parent
e56c3b8214
commit
f3100e855a
3 changed files with 28 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2005-12-18 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||||
|
|
||||||
|
* 22095: INSTALL, Etc/FAQ.yo: more multibyte notes.
|
||||||
|
|
||||||
2005-12-17 Wayne Davison <wayned@users.sourceforge.net>
|
2005-12-17 Wayne Davison <wayned@users.sourceforge.net>
|
||||||
|
|
||||||
* 22091: Src/hist.c: improved HIST_SAVE_BY_COPY to have it (1)
|
* 22091: Src/hist.c: improved HIST_SAVE_BY_COPY to have it (1)
|
||||||
|
|
20
Etc/FAQ.yo
20
Etc/FAQ.yo
|
@ -2071,7 +2071,25 @@ sect(How do I ensure multibyte input works on my system?)
|
||||||
it() The terminal emulator. Those that are supplied with a recent
|
it() The terminal emulator. Those that are supplied with a recent
|
||||||
desktop environment, such as gnome-terminal, are likely to have
|
desktop environment, such as gnome-terminal, are likely to have
|
||||||
extensive support for localization and may work correctly as soon
|
extensive support for localization and may work correctly as soon
|
||||||
as they know the locale.
|
as they know the locale. You can enable UTF-8 support for
|
||||||
|
tt(xterm) in its application defaults file. The following are
|
||||||
|
the relevant resources; you donʼt actually need all of them, as
|
||||||
|
described below. If you use a mytt(~/.Xdefaults) or
|
||||||
|
mytt(~/.Xresources) file for setting resources, prefix all the lines
|
||||||
|
with mytt(xterm):
|
||||||
|
verb(
|
||||||
|
*wideChars: true
|
||||||
|
*locale: true
|
||||||
|
*utf8: 1
|
||||||
|
*vt100Graphics: true
|
||||||
|
)
|
||||||
|
This turns on support for wide characters (this is enabled by the
|
||||||
|
tt(utf8) resource, too); enables conversions to UTF-8 from other
|
||||||
|
locales (this is the key resource and actually overrides
|
||||||
|
mytt(utf8)); turns on UTF-8 mode (this resource is mostly used to
|
||||||
|
force use of UTF-8 characters if your locale system isnʼt up to it);
|
||||||
|
and allows certain graphic characters to work even with UTF-8
|
||||||
|
enabled. (Thanks to Phil Pennock for suggestions.)
|
||||||
it() The font. If you selected this from a menu in your terminal
|
it() The font. If you selected this from a menu in your terminal
|
||||||
emulator, there's a good chance it already selected the right
|
emulator, there's a good chance it already selected the right
|
||||||
character set to go with it. If you hand-picked an old fashioned
|
character set to go with it. If you hand-picked an old fashioned
|
||||||
|
|
8
INSTALL
8
INSTALL
|
@ -276,12 +276,14 @@ be appreciated. The developers are not aware of any need to use
|
||||||
multibyte mode is believed to work automatically on:
|
multibyte mode is believed to work automatically on:
|
||||||
|
|
||||||
- All(?) current GNU/Linux distributions
|
- All(?) current GNU/Linux distributions
|
||||||
- All(?) current BSD variants
|
|
||||||
- OS X 10.4.3
|
|
||||||
|
|
||||||
and to work when configured with --enable-multibyte on:
|
and to work when configured with --enable-multibyte on:
|
||||||
|
|
||||||
- Solaris 8 and later
|
- OS X 10.4.3 (problems have been reported with multibyte characters
|
||||||
|
in HFS file names)
|
||||||
|
- NetBSD 2.0.2
|
||||||
|
|
||||||
|
Any help with Solaris 8 or 9 would be appreciated.
|
||||||
|
|
||||||
The main shell is not yet aware of multibyte characters, so for example the
|
The main shell is not yet aware of multibyte characters, so for example the
|
||||||
length of a scalar parameter will return the number of bytes, not
|
length of a scalar parameter will return the number of bytes, not
|
||||||
|
|
Loading…
Reference in a new issue