Skip to content

Commit

Permalink
ouroboros-network-framework: utf8 characters are not always well supp…
Browse files Browse the repository at this point in the history
…orted

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.
  • Loading branch information
coot committed Mar 14, 2022
1 parent 8614c31 commit 07ac557
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ instance Show state
=> Show (Transition' state) where
show Transition { fromState, toState } =
concat [ show fromState
, " "
, " -> "
, show toState
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3695,7 +3695,7 @@ splitRemoteConns =

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

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

0 comments on commit 07ac557

Please sign in to comment.