Provided by: manpages-zh_1.6.3.2-1_all bug

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]

描述

       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 序列, 然後察看控制檯驅動展示了多少個字符.

       A  message  telling  in which mode the console is is then written to stdout (except if the
       --quiet option was given).  然後會在標準輸出上給出一個信息,  指出控制檯所用模式(除非給出了
       --quiet 選項).

       If  the  --quiet  option is not given, the value returned is 1 if an error occurs, else 0.
       在有錯誤發生時, 如果沒有選取 --quiet 選項, 返回值將是 1 , 否則將是 0 .

選項

       -h --help
              display version number, a short help message and exit.  展示版本號,  以及一個簡短的
              幫助信息, 然後退出.

       -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.  不在標準輸出上打印所處模式, 但是返回一個狀態, 對於 UTF8 模
              式該退出狀態爲 1 , 而對於字節模式該狀態爲 0 . 如果發生錯誤, 也返回 0 , 並且送給標準
              錯誤一個信息.

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 模式. 這或許就是一個控制檯驅動的 bug .

另見

       unicode_start(1), unicode_stop(1).

       本頁面中文版由中文 man 手冊頁計劃提供。
       中文 man 手冊頁計劃:https://github.com/man-pages-zh/manpages-zh