Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,264
Issues
4,264
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
419
Merge Requests
419
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
1751d7be
Commit
1751d7be
authored
Jan 09, 2009
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix readwrite00[12] on Windows
parent
1a11db60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
testsuite/tests/ghc-regress/lib/IO/readwrite001.hs
testsuite/tests/ghc-regress/lib/IO/readwrite001.hs
+2
-2
testsuite/tests/ghc-regress/lib/IO/readwrite002.hs
testsuite/tests/ghc-regress/lib/IO/readwrite002.hs
+2
-2
No files found.
testsuite/tests/ghc-regress/lib/IO/readwrite001.hs
View file @
1751d7be
...
...
@@ -5,7 +5,7 @@ module Main(main) where
import
IO
import
Directory
(
removeFile
,
doesFileExist
)
import
Monad
#
ifdef
i386_unknown_mingw32
#
ifdef
mingw32_HOST_OS
import
GHC.Handle
(
hSetBinaryMode
)
#
endif
...
...
@@ -13,7 +13,7 @@ main = do
f
<-
doesFileExist
"readwrite001.inout"
when
f
(
removeFile
"readwrite001.inout"
)
hdl
<-
openFile
"readwrite001.inout"
ReadWriteMode
#
ifdef
i386_unknown_mingw32
#
ifdef
mingw32_HOST_OS
hSetBinaryMode
hdl
True
#
endif
hSetBuffering
hdl
LineBuffering
...
...
testsuite/tests/ghc-regress/lib/IO/readwrite002.hs
View file @
1751d7be
...
...
@@ -3,7 +3,7 @@
import
IO
import
Directory
(
removeFile
,
doesFileExist
)
import
Monad
#
ifdef
i386_unknown_mingw32
#
ifdef
mingw32_HOST_OS
import
GHC.Handle
(
hSetBinaryMode
)
#
endif
...
...
@@ -15,7 +15,7 @@ main = do
f
<-
doesFileExist
username
when
f
(
removeFile
username
)
cd
<-
openFile
username
ReadWriteMode
#
ifdef
i386_unknown_mingw32
#
ifdef
mingw32_HOST_OS
hSetBinaryMode
cd
True
#
endif
hSetBuffering
stdin
NoBuffering
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment