From 613cdc4b46a3c01819e2e3fd8a278a6786bc9ddb Mon Sep 17 00:00:00 2001 From: Roman Scherer Date: Wed, 24 Dec 2025 17:18:55 +0100 Subject: [PATCH] gnu: Add go-github-com-mattn-go-localereader. * gnu/packages/golang-xyz.scm (go-github-com-mattn-go-localereader): New variable. Relates-to: https://codeberg.org/guix/guix/issues/5190 Change-Id: I4fc964e87ad2c57342ca9e172ac10be8be414bb3 Reviewed-by: Johannes Christ Signed-off-by: Sharlatan Hellseher --- gnu/packages/golang-xyz.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 5f818914ed..5641b93342 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -17482,6 +17482,34 @@ to handle ANSI color escapes on Windows.") whether a file descriptor points to a terminal and the type of the terminal.") (license license:expat))) +(define-public go-github-com-mattn-go-localereader + (package + (name "go-github-com-mattn-go-localereader") + (version "0.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/mattn/go-localereader") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0wcgqnpjk0drm7swc0q27j4r5ab63mhz29dgbjdnyn4sw68rqm96")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/mattn/go-localereader" + ;; Tests reference NewCodePageDecoder which is only defined in + ;; localereader_windows.go and doesn't compile on non-Windows. + #:tests? #f)) + (home-page "https://github.com/mattn/go-localereader") + (synopsis "CodePage decoder for Windows") + (description + "This package provides a CodePage decoder for Windows, enabling Go programs +to read locale-specific character encodings such as Shift JIS. It handles +locale reading differently across Unix and Windows systems.") + (license license:expat))) + (define-public go-github-com-mattn-go-pointer (package (name "go-github-com-mattn-go-pointer")