microsoft / microsoft/go-sqlcmd

`Japanese column names are garbled in Go-based sqlcmd output`

Open
#596 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
595
Forks
91
Avg merge
9h 35m
Merged PRs (30d)
1

Description

Bug: Japanese column names are garbled in Go-based sqlcmd output
Environment
  • OS: Windows 11 Pro
  • sqlcmd version: Go-based sqlcmd v1.8.2
  • Terminal: cmd.exe (code page 65001)
  • Font: MS Gothic / Consolas
Reproduction
SELECT 1 AS 件数

Expected
The column name "件数" should be displayed correctly.

Actual
The column name is garbled (e.g., "縺。繧峨↑").

Notes
This issue does not occur in the legacy ODBC-based sqlcmd.exe.
Even with UTF-8 code page and proper fonts, the output is incorrect.
This affects Japanese users significantly and should be considered a localization bug.
Please consider addressing this issue or providing a workaround.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the query SELECT 1 AS 件数 in Go-based sqlcmd v1.8.2 on Windows with code page 65001, then compare the output with legacy ODBC-based sqlcmd.exe. No source file or test is named; done means the Japanese column name displays correctly and a regression test covers this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, sql
Domain
cli, internationalization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.