-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: bypass unicode translation in group for latin1 putc_requests
latin1 requests are sent to user_drv, if its in latin1 mode, and raw output mode, then just output the latin1 binary. Otherwise user_drv will convert the output to unicode.
- Loading branch information
1 parent
14e885a
commit 9d6974f
Showing
5 changed files
with
74 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env escript | ||
|
||
main([Enc]) -> | ||
Data = {tuple, {list, lists:seq(1,1000000)}}, | ||
io:setopts(group_leader(), [{encoding, list_to_atom(Enc)}]), | ||
file:write(group_leader(), term_to_binary(Data)), | ||
ok. |