Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isreadable returns true for a file opened in "w" mode #5056

Closed
timholy opened this issue Dec 7, 2013 · 0 comments
Closed

isreadable returns true for a file opened in "w" mode #5056

timholy opened this issue Dec 7, 2013 · 0 comments

Comments

@timholy
Copy link
Sponsor Member

timholy commented Dec 7, 2013

julia> s = open("/tmp/test.dat", "w")
IOStream(<file /tmp/test.dat>)

julia> isreadable(s)
true

#5053 shows an example where this behavior can lead to a segfault, suggesting that it isn't truly readable.

@timholy timholy closed this as completed in 3d27678 Dec 7, 2013
timholy added a commit that referenced this issue Dec 7, 2013
gitfoxi pushed a commit to gitfoxi/julia that referenced this issue Dec 13, 2013
* upstream/master: (53 commits)
  edit embedding chapter
  formatting fixes
  Fix JuliaLang#5056
  more consitent/useful description of predicate in ie all()
  NEWS for JuliaLang#4042
  Add sparse matvec to perf benchmark (JuliaLang#4707)
  Use warn_once instead of warn (JuliaLang#5038)
  Use warn() instead of println in base/sprase/sparsematrix.jl
  allow scale(b,A) or scale(A,b) when b is a scalar as well as a vector, don't restrict scale unnecessarily to arrays of numbers (e.g. scaling arrays of arrays should work), and improve documentation for scale\!
  Added section about memory management
  added negative bitarray rolling
  More accurate linspace for types with greater precision than Float64
  add realmin realmax for BigFloat
  fix eps(realmax), add typemin and typemax for BigFloat
  fix JuliaLang#5025, ordering used by nextfloat/prevfloat
  roll back on errors during type definitions. fixes JuliaLang#5009
  improve method signature errors. fixes JuliaLang#5018
  update juliadoc
  add more asserts for casts
  Fix segfaulting on strstr() failure
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant