rkd77 / elinks

Fork of elinks
Other
349 stars 38 forks source link

macOS: utf box drawing characters are not used in boxes/tables #263

Closed 0-issue closed 1 year ago

0-issue commented 1 year ago

For some reason utf box drawing characters are not being used on macOS with same conf as on Linux.

Screenshot 2023-08-24 at 4 13 06 AM
% locale
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=

% echo $LANG
en_US.UTF-8

Possibly relevant part of conf file:

  ## document.codepage 
  #  Charset options.

    ## document.codepage.assume <codepage>
    #  Default document codepage. 'System' stands for a codepage determined by a
    #  selected locale.
    set document.codepage.assume = "System" # <- doesn't matter if changed to UTF-8 alongside, and/or force_assumed is set

    ## document.codepage.force_assumed [0|1]
    #  Ignore charset info sent by server.
    set document.codepage.force_assumed = 0

    ## terminal.tmux-256color.charset <codepage>
    set terminal.tmux-256color.charset = "System"
    ## terminal.tmux-256color.underline [0|1]
    set terminal.tmux-256color.underline = 1
    ## terminal.tmux-256color.italic [0|1]
    set terminal.tmux-256color.italic = 1
    ## terminal.tmux-256color.transparency [0|1]
    set terminal.tmux-256color.transparency = 0
    ## terminal.tmux-256color.colors <num>
    set terminal.tmux-256color.colors = 1
    ## terminal.tmux-256color.block_cursor [0|1]
    set terminal.tmux-256color.block_cursor = 0
    ## terminal.tmux-256color.restrict_852 [0|1]
    set terminal.tmux-256color.restrict_852 = 0
    ## terminal.tmux-256color.utf_8_io [0|1]
    set terminal.tmux-256color.utf_8_io = 0
    ## terminal.tmux-256color.m11_hack [0|1]
    set terminal.tmux-256color.m11_hack = 0
    ## terminal.tmux-256color.latin1_title [0|1]
    set terminal.tmux-256color.latin1_title = 1
    ## terminal.tmux-256color.type <num>
    set terminal.tmux-256color.type = 0
% elinks --version
ELinks 0.17.GIT
Built on Aug 21 2023 10:30:34

Features:
Standard, IPv6, gzip(1.2.11), bzip2(1.0.8), UTF-8, Periodic Saving,
Viewer (Search History, Timer, Marks), Cascading Style Sheets, Protocol
(Authentication, BitTorrent, File, CGI, Finger, FTP, Gemini, Gopher,
HTTP, NNTP, URI rewrite, User protocols), SSL (OpenSSL), MIME (Option
system, Mailcap, Mimetypes files), LED indicators, Bookmarks, Cookies,
Form History, Global History, Scripting (Lua), Exmode, Goto URL History
rkd77 commented 1 year ago

F9 -> Setup -> Terminal options What is there? What after some changes and Save?

0-issue commented 1 year ago

@rkd77 Here's the screenshot:

Screenshot 2023-08-24 at 6 56 00 AM
0-issue commented 1 year ago

Got it, I had to select FreeBSD frames! It works then...