Guest User

unreadablee_manpages.patch

a guest
Feb 20th, 2016
99
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Description: Manpage encoding issues are seen for some languages
  2.  
  3. --- ./liveinit~ 2016-02-20 11:39:20.873987000 +0300
  4. +++ ./liveinit 2016-02-20 12:00:10.448889605 +0300
  5. @@ -593,6 +593,33 @@
  6. EOT
  7. fi
  8.  
  9. + if [ "$LOCALE" != "ru_RU.utf8" ]; then
  10. + # Default man.conf:
  11. + if grep -q '/usr/bin/groff -K utf8 -mandoc -Tutf8' /mnt/overlay/etc/man.conf ; then
  12. + sed -i 's,/usr/bin/groff -K utf8 -mandoc -Tutf8,/usr/bin/nroff -mandoc,g' \
  13. + /mnt/overlay/etc/man.conf
  14. + fi
  15. + else
  16. + # Readable local man pages:
  17. + if grep -q '/usr/bin/nroff -mandoc' /mnt/overlay/etc/man.conf ; then
  18. + sed -i 's,/usr/bin/nroff -mandoc,/usr/bin/groff -K utf8 -mandoc -Tutf8,g' \
  19. + /mnt/overlay/etc/man.conf
  20. + fi
  21. + # XMMS fonts:
  22. + if [ ! -f /mnt/overlay/etc/gtk/gtkrc.ru_RU.utf8 ]; then
  23. + cat <<EOT > /mnt/overlay/etc/gtk/gtkrc.ru_RU.utf8
  24. +# Fonts for Unicode locales.
  25. +
  26. +style "gtk-default-ru" {
  27. + fontset = "-*-terminus-medium-r-normal-*-*-120-*-*-c-*-iso10646-1,*-r-*"
  28. +}
  29. +
  30. +class "GtkWidget" style "gtk-default-ru"
  31. +
  32. +EOT
  33. + fi
  34. + fi
  35. +
  36. if [ ! -z "$LIVEPW" ]; then
  37. # User entered a custom live password on the boot commandline:
  38. echo "${MARKER}: Changing password for user 'live'."
RAW Paste Data