JuliaLang/julia — pull request #1424 by kmsquire (2012-10-22 10:38:15+00:00)
Title: WIP: Added generic read, write functions for unicode Char i/o.

In the original versions of `read(s::GZipStream, ::Type{Char})` and `write(s::GZipStream, Char)` in #1355, Jeff suggested generalizing the functions so they work with all IO streams. This is an attempt at that. However, the build currently fails with

```bash

$ make
CC src/jltypes.o
...
JULIA usr/lib/julia/sys.ji
Warning: replacing module Base
@str not defined
in include at boot.jl:241
in load_now at util.jl:231
in load_now at util.jl:245
in require at util.jl:174
in process_options at client.jl:182
in _start at client.jl:236
in include at boot.jl:241
in load_now at util.jl:231
in load_now at util.jl:245
in require at util.jl:174
in process_options at client.jl:182
in _start at client.jl:236
at io.jl:251
in load_now at util.jl:231
in load_now at util.jl:245
in require at util.jl:174
in process_options at client.jl:182
in _start at client.jl:236
at /home/kmsquire/Source/julia/base/sysimg.jl:76
in load_now at util.jl:231
in load_now at util.jl:245
in require at util.jl:174
in process_options at client.jl:182
in _start at client.jl:236
in load_now at util.jl:256
in require at util.jl:174
in process_options at client.jl:182
in _start at client.jl:236
Note: this error is usually fixed by running 'make clean'.
$ make clean
$ make
CC src/jltypes.o
...
JULIA usr/lib/julia/sys.ji
error during bootstrap: @str not defined