pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/happy/patches



Module Name:    pkgsrc
Committed By:   pho
Date:           Fri Jan 31 07:36:49 UTC 2025

Added Files:
        pkgsrc/devel/happy/patches: patch-app_Main.lhs

Log Message:
devel/happy: I forgot to "cvs add" the actual patch


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/happy/patches/patch-app_Main.lhs

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/devel/happy/patches/patch-app_Main.lhs
diff -u /dev/null pkgsrc/devel/happy/patches/patch-app_Main.lhs:1.1
--- /dev/null   Fri Jan 31 07:36:49 2025
+++ pkgsrc/devel/happy/patches/patch-app_Main.lhs       Fri Jan 31 07:36:48 2025
@@ -0,0 +1,26 @@
+$NetBSD: patch-app_Main.lhs,v 1.1 2025/01/31 07:36:48 pho Exp $
+
+Workaround for happy chokes on non-ASCII inputs when the locale isn't
+"*.UTF-8". This is probably not a desirable way to fix it but a proper fix
+would need a serious work. Without this workaround we cannot build
+devel/hs-ghc-lib-parser.
+
+TODO: Report this to upstream and let them decide what to do.
+
+--- app/Main.lhs.orig  2025-01-31 01:25:49.829104023 +0000
++++ app/Main.lhs
+@@ -28,12 +28,14 @@ Path settings auto-generated by Cabal:
+ > import System.Environment
+ > import System.Exit (exitWith, ExitCode(..))
+ > import Data.Char
++> import GHC.IO.Encoding (setLocaleEncoding)
+ > import System.IO
+ > import Data.List( isSuffixOf )
+ > import Data.Version ( showVersion )
+ 
+ > main :: IO ()
+ > main = do
++>       setLocaleEncoding utf8
+ 
+ Read and parse the CLI arguments.
+ 



Home | Main Index | Thread Index | Old Index