Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GVim fontset error after system update (UTF8 locale problem)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
maguire
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2004
Posts: 103
Location: Longmont, Colorado

PostPosted: Fri Oct 06, 2017 4:53 pm    Post subject: GVim fontset error after system update (UTF8 locale problem) Reply with quote

I recently updated, and suddenly GVim is complaining about font problems:
Code:

$ gvim
Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset
Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset
Error: Aborting: no fontset found

Everything worked fine before, and I didn't change any system settings (like locale) before the update. If I force the locale to either "C" or "en_US" (rather than the default "en_US.utf8"), then GVim opens fine. So this works:
Code:

$ LC_ALL=en_US gvim

But it feels really hack-ish to always call GVim with a forced, non-UTF8 locale! I have re-sourced '/etc/profile', and rebooted, and even rebuilt the toolchain and emerged "--emptytree world", but nothing changes GVim's refusal to start with the "en_US.utf8" locale.

Here is some (hopefully) relevant info:
Code:

$ locale
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE="en_US.utf8"
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

Code:

$ locale -a
C
en_US
en_US.iso88591
en_US.utf8
POSIX

Code:

$ eselect locale list
Available targets for the LANG variable:
  [1]   C
  [2]   en_US
  [3]   en_US.iso88591
  [4]   en_US.utf8 *
  [5]   POSIX
  [ ]   (free form)

Code:

$ cat /etc/env.d/02locale
# Configuration file for eselect
# This file has been automatically generated.
LANG="en_US.utf8"

Code:

$ cat /etc/locale.gen | egrep -v "^#"
en_US ISO-8859-1
en_US.UTF-8 UTF-8


So, can someone help me with my new GVim font/locale problem?

Much appreciated,
Bruce.

p.s.:

If it is of any interest or help, the problem first appeared after the following packages were emerged:
Code:

$ find /var/log/portage -maxdepth 1 -type f -newer /var/log/portage/net-analyzer:nmap-7.40:20170721-165934.log ! -newer /var/log/portage/sys-apps:openrc-0.28:20171005-003455.log | xargs ls -ltr | tr -s ' ' | cut -d' ' -f9- | sed 's/^\/var\/log\/portage\///' | sed 's/-[0-9].*$//' | sort | uniq
app-arch:bzip2
app-arch:unrar
app-misc:ca-certificates
app-portage:elt-patches
app-portage:mirrorselect
app-text:apvlv
app-text:evince
app-text:ghostscript-gpl
app-text:hunspell
app-text:libmwaw
app-text:libwpd
app-text:par
app-text:poppler
app-text:texlive-core
dev-java:icedtea-bin
dev-lang:python
dev-lang:ruby
dev-libs:json-c
dev-libs:libatomic_ops
dev-libs:libbsd
dev-libs:libgcrypt
dev-libs:liborcus
dev-libs:libpcre
dev-libs:libtasn1
dev-libs:libxml2
dev-libs:nettle
dev-libs:openssl
dev-python:asn1crypto
dev-python:chardet
dev-python:cryptography
dev-python:docutils
dev-python:pbr
dev-python:pyopenssl
dev-python:pyparsing
dev-python:PySocks
dev-python:requests
dev-python:urllib3
dev-ruby:json
dev-ruby:minitest
dev-ruby:power_assert
dev-ruby:racc
dev-ruby:rake
dev-ruby:rdoc
dev-ruby:rubygems
dev-ruby:test-unit
dev-util:dialog
dev-util:ragel
dev-vcs:git
dev-vcs:subversion
gnome-base:librsvg
mail-client:thunderbird
media-fonts:terminus-font
media-gfx:imagemagick
media-libs:fontconfig
media-libs:id3lib
media-libs:lcms
media-libs:libpng
media-libs:openjpeg
media-libs:taglib
media-libs:tiff
media-video:ffmpeg
net-dns:bind-tools
net-dns:libidn2
net-fs:samba
net-libs:gnutls
net-libs:libsoup
net-libs:neon
net-libs:serf
net-misc:curl
net-misc:openssh
net-print:cups-filters
net-wireless:bluez
sys-apps:baselayout
sys-apps:coreutils
sys-apps:file
sys-apps:gentoo-functions
sys-apps:help2man
sys-apps:net-tools
sys-apps:openrc
sys-apps:portage
sys-apps:shadow
sys-auth:consolekit
sys-auth:polkit
sys-block:parted
sys-devel:binutils
sys-devel:gcc
sys-devel:llvm
sys-libs:binutils-libs
sys-libs:zlib
sys-process:parallel
virtual:freedesktop-icon-theme
virtual:perl-Digest-SHA
virtual:perl-Encode
virtual:perl-ExtUtils-MakeMaker
virtual:perl-File-Spec
virtual:perl-IO
virtual:perl-IO-Compress
virtual:perl-JSON-PP
virtual:perl-libnet
virtual:perl-Parse-CPAN-Meta
virtual:perl-Storable
virtual:perl-Test-Harness
virtual:perl-XSLoader
virtual:rubygems
www-client:firefox
x11-libs:cairo
x11-libs:gdk-pixbuf
x11-libs:libpciaccess

Code:

$ gvim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Oct  5 2017 23:33:58)
Included patches: 1-386
Modified by Gentoo-8.0.0386
Compiled by maguire@magma2
Huge version with X11-Athena GUI.  Features included (+) or not (-):
+acl             +file_in_path    +mouse_sgr       +tag_old_static
+arabic          +find_in_path    -mouse_sysmouse  -tag_any_white
+autocmd         +float           +mouse_urxvt     -tcl
+balloon_eval    +folding         +mouse_xterm     +termguicolors
+browse          -footer          +multi_byte      +terminfo
++builtin_terms  +fork()          +multi_lang      +termresponse
+byte_offset     +gettext         -mzscheme        +textobjects
+channel         -hangul_input    -netbeans_intg   +timers
+cindent         +iconv           +num64           +title
+clientserver    +insert_expand   +packages        +toolbar
+clipboard       +job             +path_extra      +user_commands
+cmdline_compl   +jumplist        -perl            +vertsplit
+cmdline_hist    +keymap          +persistent_undo +virtualedit
+cmdline_info    +lambda          +postscript      +visual
+comments        +langmap         +printer         +visualextra
+conceal         +libcall         +profile         +viminfo
+cryptv          +linebreak       +python/dyn      +vreplace
+cscope          +lispindent      +python3/dyn     +wildignore
+cursorbind      +listcmds        +quickfix        +wildmenu
+cursorshape     +localmap        +reltime         +windows
+dialog_con_gui  -lua             +rightleft       +writebackup
+diff            +menu            -ruby            +X11
+digraphs        +mksession       +scrollbind      +xfontset
-dnd             +modify_fname    +signs           +xim
-ebcdic          +mouse           +smartindent     +xpm
+emacs_tags      +mouseshape      +startuptime     +xsmp_interact
+eval            +mouse_dec       +statusline      +xterm_clipboard
+ex_extra        -mouse_gpm       -sun_workshop    -xterm_save
+extra_search    -mouse_jsbterm   +syntax         
+farsi           +mouse_netterm   +tag_binary     
   system vimrc file: "/etc/vim/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "/etc/vim/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: x86_64-pc-linux-gnu-gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_ATHENA -DFUNCPROTO=15 -DNARROWPROTO    -march=native -O2 -pipe -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       
Linking: x86_64-pc-linux-gnu-gcc   -Wl,-O1 -L/usr/local/lib -Wl,--as-needed -o gvim -lXaw -lXmu -lXext -lXt -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -ldl  -lm -lncurses -lnsl    -lacl -lattr -ldl           

Code:

$ emerge --info
Portage 2.3.8 (python 2.7.12-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.23-r4, 4.4.26-gentoo x86_64)
=================================================================
System uname: Linux-4.4.26-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5620_@_2.40GHz-with-gentoo-2.4.1
KiB Mem:    61837916 total,  60069340 free
KiB Swap:   67108860 total,  67108860 free
Timestamp of repository gentoo: Fri, 06 Oct 2017 06:00:01 +0000
Head commit of repository gentoo: e96893fb08966c3f78eb972596ed584845f2bd91
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

my_local_overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/ http://gentoo.mirrors.tds.net/gentoo rsync://gentoo.gossamerhost.com/gentoo-distfiles/ http://gentoo.gossamerhost.com http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.binarycompass.org http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm iconv ipv6 jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds python qt3support readline sdl seccomp session spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xinerama xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nouveau vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Back to top
View user's profile Send private message
v_andal
Guru
Guru


Joined: 26 Aug 2008
Posts: 545
Location: Germany

PostPosted: Mon Oct 09, 2017 7:29 am    Post subject: Reply with quote

What are the USE flags for Gvim? What is in .gvimrc?

Searching inet shows that such problems happen if there's some problem with installed fonts (Gvim can not find font). Alternative problem is with the toolkit used for Gvim.

So I would recommend to try and compile Gvim with GTK2 toolkit. If this does not remove problem, then check which font Gvim wants to have and see if this font is available. Note, different toolkits use different ways to specify font name.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum