head 1.2; access; symbols pkgsrc-2026Q1:1.2.0.6 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.4 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.2 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.1.0.4 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.2 pkgsrc-2025Q1-base:1.1; locks; strict; comment @# @; 1.2 date 2025.08.20.19.23.36; author wiz; state Exp; branches; next 1.1; commitid asQdJJYdTeNqhv7G; 1.1 date 2025.01.31.07.36.48; author pho; state Exp; branches; next ; commitid 0nh8JkQPrkTyPBHF; desc @@ 1.2 log @devel/happy: update to happy-2.1.7 ## 2.1.7 * Add support for `{-# OPTIONS_HAPPY ... #-}` pragmas ([#342](https://github.com/haskell/happy/issues/342)). * Tested with GHC 8.0 - 9.12.2. The Haskell code generated by Happy is for GHC 8.0 and up. @ text @$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 2001-09-09 01:46:40.000000000 +0000 +++ app/Main.lhs @@@@ -29,12 +29,14 @@@@ Path settings auto-generated by Cabal: > import System.Exit (exitWith, ExitCode(..)) > import Data.Char > import Data.List ( union ) +> 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. @ 1.1 log @devel/happy: I forgot to "cvs add" the actual patch @ text @d1 1 a1 1 $NetBSD$ d10 1 a10 1 --- app/Main.lhs.orig 2025-01-31 01:25:49.829104023 +0000 d12 1 a12 2 @@@@ -28,12 +28,14 @@@@ Path settings auto-generated by Cabal: > import System.Environment d15 1 @