mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 19:02:09 +00:00
btop: append --utf-force argument by default
btop reads the `LANG` env variable to delect if the system has utf8 support, which exists on common Linux distributions. However, OpenWrt does not ship it, and results in btop reporting "No UTF-8 locale detected!". Users have to manually pass `--utf-force` to make btop happy. To make it OOTB, append `--utf-force` argument by default via alias. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
committed by
Tianling Shen
parent
409dbb05c9
commit
5671bd0d1a
@@ -42,6 +42,9 @@ define Package/btop/install
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/local/bin/btop $(1)/usr/bin/
|
||||
$(INSTALL_DIR) $(1)/usr/share
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/local/share/btop $(1)/usr/share/
|
||||
|
||||
$(INSTALL_DIR) $(1)/etc/profile.d
|
||||
$(CP) $(CURDIR)/files/btop.sh $(1)/etc/profile.d/
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,btop))
|
||||
|
||||
1
admin/btop/files/btop.sh
Normal file
1
admin/btop/files/btop.sh
Normal file
@@ -0,0 +1 @@
|
||||
alias btop="btop --utf-force"
|
||||
Reference in New Issue
Block a user