Skip to content

writedlm - issues with line breaks on Windows  #15

Open
@rowlesmr

Description

When writing an array with writedlm on Windows, lines are not terminated with /r/n.

julia> rnd = rand(2,2)
2x2 Array{Float64,2}:
 0.417898  0.534031
 0.593108  0.909771
julia> writedlm("out.txt", rnd)

-> .41789803012680227 .5340308732027403.5931077439922414 .9097713865838699

Expected behaviour: on a Windows system, the Windows line break would be used.

Julia Version 0.4.0
Commit 0ff703b* (2015-10-08 06:20 UTC)
Platform Info:
  System: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions