Skip to content

Commit e14e2a6

Browse files
committed
ouroboros-network-framework: utf8 characters are not always well supported
On nix and Windows the following error can be observed ``` <stdout>: commitBuffer: invalid argument (invalid character) ``` This is misconfiguration of the locale, but the easiest way to fix it is to avoid the `→` character all together.
1 parent ffcd027 commit e14e2a6

File tree

2 files changed

+2
-2
lines changed
  • ouroboros-network-framework

2 files changed

+2
-2
lines changed

ouroboros-network-framework/src/Ouroboros/Network/ConnectionManager/Types.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ instance Show state
874874
=> Show (Transition' state) where
875875
show Transition { fromState, toState } =
876876
concat [ show fromState
877-
, " "
877+
, " -> "
878878
, show toState
879879
]
880880

ouroboros-network-framework/test/Test/Ouroboros/Network/Server2.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3695,7 +3695,7 @@ splitRemoteConns =
36953695

36963696
ppTransition :: AbstractTransition -> String
36973697
ppTransition Transition {fromState, toState} =
3698-
printf "%-30s %s" (show fromState) (show toState)
3698+
printf "%-30s -> %s" (show fromState) (show toState)
36993699

37003700
ppScript :: (Show peerAddr, Show req) => MultiNodeScript peerAddr req -> String
37013701
ppScript (MultiNodeScript script _) = intercalate "\n" $ go 0 script

0 commit comments

Comments
 (0)