8000 Gitsigns not working when LANG=zh_CN.UTF-8 · Issue #1325 · lewis6991/gitsigns.nvim · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Gitsigns not working when LANG=zh_CN.UTF-8 #1325
Open
@goulf-3m

Description

@goulf-3m

Description

I set LANG=zh_CN.UTF-8 in the system, Gitsigns does not work.
If I run LANG=C nvim ..., it works.

I guess Gitsigns tries to parse git output for it to work.
In such a case, some such calls should set LANG=C enviroment.

Neovim version

v0.11.1

Operating system and version

ArchLinux

Expected behavior

No response

Actual behavior

Gitsigns not working.

Minimal config

for name, url in pairs{
  gitsigns = 'https://github.com/lewis6991/gitsigns.nvim',
  -- ADD OTHER PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE
} do
  local install_path = vim.fn.fnamemodify('gitsigns_issue/'..name, ':p')
  if vim.fn.isdirectory(install_path) == 0 then
    vim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
  end
  vim.opt.runtimepath:append(install_path)
end

require('gitsigns').setup{
  debug_mode = true, -- You must add this to enable debug messages
  -- ADD GITSIGNS CONFIG THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE
}

-- ADD INIT.LUA SETTINGS THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE

Steps to reproduce

Set language in gnome-control-center

Gitsigns debug messages


Gitsigns cache

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0