Provided by:
manpages-zh_1.5.1-2_all 
NAME
vt-is-UTF8 - check whether current VT is in UTF8- or byte-mode.
檢查當前VT是否處於VTF8模式或是字節模式.
`覽
vt-is-UTF8 [-h|--help] [-V|--version] [-q|--quiet]
yz
vt-is-UTF8 checks whether the current VT is in UTF8 mode, by writing
(and erasing afterwards) a 3-byte-long UTF8 sequence, and looking how
much chars where displayed by the console driver. vt-is-UTF8
檢查當前VT是否處於 UTF8 模式, 其方式是寫(並且隨後擦除) 一 3 字節的
UTF8 序列, 然後察看控制台驅動展示了多少茼r符.
A message telling in which mode the console is is then written to
stdout (except if the --quiet option was given).
然後會在標準輸出上給出一茷H息, 指出控制台所用模式(除非給出了 --quiet
選項).
If the --quiet option is not given, the value returned is 1 if an error
occurs, else 0. 在有錯誤發生時, 如果沒有選取 --quiet 選項, 返回N是 1
, 否則將是 0 .
項
-h --help
display version number, a short help message and exit.
展示版本號, 以及一蚋眶u的幫助信息, 然後退出.
-V --version
display version number and exit. 展示版本號然後退出.
-q --quiet
do not print on stdout in with mode we are, but return the state
as exit-status 1 if in UTF8-mode, 0 if in byte-mode. In case of
error, 0 is returned and a message is displayed on stderr.
不在標準輸出上列印所處模式, 但是返回一茠牯A, 對於 UTF8
模式該退出狀態為 1 , 而對於字節模式該狀態為 0 . 如果發生錯誤,
也返回 0 , 並且送給標準錯誤一茷H息.
BUGS
The check should be done by directly asking the kernel, which is not
possible as of kernels 2.0.x.
模式的檢查可能應該通過直接請求核心來進行, 但從核心 2.0.x
開始這就不可能了.
As of kernel 2.0.35, the byte-mode is sometimes erroneously detected as
UTF8-mode, after switching from a 512-chars font to a 256-chars font.
This is probably a console-driver bug. 從 2.0.35 的核心開始, 在做了從
512 字符字型到 256 字符字型的切換後, 字節模式有時會被錯誤地認為是 UTF8
模式. 這或陷N是一荓惆謋x驅動的 bug .
t見
unicode_start(1), unicode_stop(1).