Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-typed-process for 
openSUSE:Factory checked in at 2025-04-20 09:36:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-typed-process (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-typed-process.new.30101 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-typed-process"

Sun Apr 20 09:36:25 2025 rev:23 rq:1271015 version:0.2.13.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-typed-process/ghc-typed-process.changes      
2024-09-03 13:39:09.322796163 +0200
+++ 
/work/SRC/openSUSE:Factory/.ghc-typed-process.new.30101/ghc-typed-process.changes
   2025-04-20 19:54:22.162875327 +0200
@@ -1,0 +2,10 @@
+Sat Apr 12 12:28:58 UTC 2025 - Peter Simons <[email protected]>
+
+- Update typed-process to version 0.2.13.0.
+  ## 0.2.13.0
+
+  * Format stdout and stderr in `ExitCodeException` assuming they are in
+    UTF-8.  See [#87](https://github.com/fpco/typed-process/pull/87).
+    Thanks to @9999years for the legwork on this change.
+
+-------------------------------------------------------------------

Old:
----
  typed-process-0.2.12.0.tar.gz

New:
----
  typed-process-0.2.13.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-typed-process.spec ++++++
--- /var/tmp/diff_new_pack.FAmZ9r/_old  2025-04-20 19:54:23.638937121 +0200
+++ /var/tmp/diff_new_pack.FAmZ9r/_new  2025-04-20 19:54:23.638937121 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-typed-process
 #
-# Copyright (c) 2024 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
 %global pkgver %{pkg_name}-%{version}
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.2.12.0
+Version:        0.2.13.0
 Release:        0
 Summary:        Run external processes, with strong typing of streams
 License:        MIT
@@ -38,6 +38,8 @@
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-stm-devel
 BuildRequires:  ghc-stm-prof
+BuildRequires:  ghc-text-devel
+BuildRequires:  ghc-text-prof
 BuildRequires:  ghc-transformers-devel
 BuildRequires:  ghc-transformers-prof
 BuildRequires:  ghc-unliftio-core-devel

++++++ typed-process-0.2.12.0.tar.gz -> typed-process-0.2.13.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/typed-process-0.2.12.0/ChangeLog.md 
new/typed-process-0.2.13.0/ChangeLog.md
--- old/typed-process-0.2.12.0/ChangeLog.md     2001-09-09 03:46:40.000000000 
+0200
+++ new/typed-process-0.2.13.0/ChangeLog.md     2001-09-09 03:46:40.000000000 
+0200
@@ -1,5 +1,11 @@
 # ChangeLog for typed-process
 
+## 0.2.13.0
+
+* Format stdout and stderr in `ExitCodeException` assuming they are in
+  UTF-8.  See [#87](https://github.com/fpco/typed-process/pull/87).
+  Thanks to @9999years for the legwork on this change.
+
 ## 0.2.12.0
 
 * Add `getPid`, `exitCodeExceptionWithOutput`,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/typed-process-0.2.12.0/src/System/Process/Typed/Internal.hs 
new/typed-process-0.2.13.0/src/System/Process/Typed/Internal.hs
--- old/typed-process-0.2.12.0/src/System/Process/Typed/Internal.hs     
2001-09-09 03:46:40.000000000 +0200
+++ new/typed-process-0.2.13.0/src/System/Process/Typed/Internal.hs     
2001-09-09 03:46:40.000000000 +0200
@@ -23,9 +23,11 @@
 import Control.Concurrent.STM (newEmptyTMVarIO, atomically, putTMVar, 
readTMVar, STM, tryPutTMVar, throwSTM)
 import System.Exit (ExitCode)
 import qualified Data.ByteString.Lazy as L
-import qualified Data.ByteString.Lazy.Char8 as L8
 import Data.String (IsString (fromString))
 import Control.Monad.IO.Unlift
+import qualified Data.Text.Encoding.Error as TEE
+import qualified Data.Text.Lazy as TL
+import qualified Data.Text.Lazy.Encoding as TLE
 
 #if MIN_VERSION_process(1, 4, 0) && !WINDOWS
 import System.Posix.Types (GroupID, UserID)
@@ -620,11 +622,15 @@
         , show (eceProcessConfig ece) { pcEnv = Nothing }
         , if L.null (eceStdout ece)
             then ""
-            else "Standard output:\n\n" ++ L8.unpack (eceStdout ece)
+            else "Standard output:\n\n" ++ unpack (eceStdout ece)
         , if L.null (eceStderr ece)
             then ""
-            else "Standard error:\n\n" ++ L8.unpack (eceStderr ece)
+            else "Standard error:\n\n" ++ unpack (eceStderr ece)
         ]
+      where
+        -- Format with UTF-8, because we have to choose some encoding,
+        -- and UTF-8 is the least likely to be wrong in general.
+        unpack = TL.unpack . TLE.decodeUtf8With TEE.lenientDecode
 
 -- | Wrapper for when an exception is thrown when reading from a child
 -- process, used by 'byteStringOutput'.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/typed-process-0.2.12.0/typed-process.cabal 
new/typed-process-0.2.13.0/typed-process.cabal
--- old/typed-process-0.2.12.0/typed-process.cabal      2001-09-09 
03:46:40.000000000 +0200
+++ new/typed-process-0.2.13.0/typed-process.cabal      2001-09-09 
03:46:40.000000000 +0200
@@ -1,11 +1,11 @@
 cabal-version: 1.12
 
--- This file has been generated from package.yaml by hpack version 0.37.0.
+-- This file has been generated from package.yaml by hpack version 0.38.0.
 --
 -- see: https://github.com/sol/hpack
 
 name:           typed-process
-version:        0.2.12.0
+version:        0.2.13.0
 synopsis:       Run external processes, with strong typing of streams
 description:    Please see the tutorial at 
<https://github.com/fpco/typed-process#readme>
 category:       System
@@ -38,6 +38,7 @@
     , bytestring
     , process >=1.2
     , stm
+    , text
     , transformers
     , unliftio-core
   default-language: Haskell2010
@@ -64,6 +65,7 @@
     , process >=1.2
     , stm
     , temporary
+    , text
     , transformers
     , typed-process
     , unliftio-core
@@ -88,6 +90,7 @@
     , process >=1.2
     , stm
     , temporary
+    , text
     , transformers
     , typed-process
     , unliftio-core

Reply via email to