V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
john737
V2EX  ›  程序员

tig浏览git历史时无法搜索中文,但中文的提交信息显示正常

  •  
  •   john737 · Nov 15, 2012 · 4249 views
    This topic created in 4915 days ago, the information mentioned may be changed or developed.
    $locale
    LANG=zh_CN.UTF-8
    LC_CTYPE="zh_CN.UTF-8"
    LC_COLLATE="zh_CN.UTF-8"
    LC_TIME="zh_CN.UTF-8"
    LC_NUMERIC="zh_CN.UTF-8"
    LC_MONETARY="zh_CN.UTF-8"
    LC_MESSAGES="zh_CN.UTF-8"
    LC_ALL=

    tig版本为1.1,跑在FreeBSD 9.0上。

    查看了项目代码的这个中文显示的issue:https://github.com/jonas/tig/issues/99
    已经确认编译时使用了-lncursesw参数

    搞不懂为什么搜索不能输入中文,但是平时显示又没有问题,求各位大大解惑
    2 replies    1970-01-01 08:00:00 +08:00
    lovejoy
        1
    lovejoy  
       Nov 15, 2012
    确实搜索的时候根本连打的都不显示,我觉得有必要看下他的代码,上面那个issue是我提的,等等看,作者应该会回的
    john737
        2
    john737  
    OP
       Nov 15, 2012
    谢谢,我围观了一下代码,似乎获取搜索字符的opt_search是先由ncurses处理的,作者做的只是strncpy,搞不懂……
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2391 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 15:47 · PVG 23:47 · LAX 08:47 · JFK 11:47
    ♥ Do have faith in what you're doing.