Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ruby 1 9 3 #199
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
Uh oh!
There was an error while loading. Please reload this page.
Ruby 1 9 3 #199
Changes from 1 commit
0234bcf36b3d5547bb7f34bfa061513b098d91a05cc3e465b2c5d6baca42d1384a867f04e65c33d3cf9745501be093ade0773b80b6d0f11d8774691a208a75d14b60fc0cdff283af59bc2ae84b6396bcb31dd3b3f3ee8b016c36417d86051f4df871b760f18c9fac6966f39c79719bfdd296c3d8f8764fe782ca883f1aca1bf61d7aa815c5ac81a6e394325223495925f06da6dbda1e944d3cf00c8cfb435c546100af7b850a470bafcd556e56eea57b7aa9f95dd7354dc3d30a4debd68cdf5c4d23a5884f05bf84ec9395de889a3a81c766bae9e4a3558675c32308754209ddc1303fb95433b2d8168de95c3026a81a81780ca7d24103e71e322989fa1a2ae35bf8093e661a70894d6d9efce276cd700fb32950976dc4b97e2e3dcf7f7f931b21d035e808b60f377c13806abf331d6b3660a329e9ef9bdffdaca1b1bcb82ae323a90f3e2cd34fca5d04962990c493ed9ca160cc7495f97a208f49f8a7d04257124a872bd3f4cda1e45086d14bb729aa818241815d88b58f269dc34b551c857c737d984d7e8836370b810939c0d944d66248a3e894987d8e27a5acdbe9f1d5c8776f583143e5c0a65d88f9a5064ff29f5f955374e6b79086bba96494645a500e0e19adcffc31140e84de2720129197d00bcef46ac589d7ac834c1a16ec9ccb51ca2a6da940590e1a08e44f04396546859324620aab510813de2809639573b4d9270181abf777eaa1fcca834d7f87b770c5d466e5bea7c1c864fdcf85f444d7caf259823f071551031ff4be12520997809a10c9764b6f2b6716622209354c4a4f81c26e1ebb3d55c37e2aeaed17325a16c29b799310a59d87f1fcc9574870ac2587336c45e28db237ca27aa8e050fc15d43f34d5ba54a72aa68b915cbd0046883dcb1a7932b8e9ecc92d911a51d9611059cf651ea3db1d0ddd4b3e306aad4b53b93b187fa8ae14121e1939898b9c10659c5349dbacfeeb409af52f0331d15cf483c7e4642c34dd1686286309cef75495258662ec84fdde6954e273f774c0b59dfbbe2e24d1ff52dc1a730238546c557169c30f40433d5c486b3bac2f45af0cb800677f869ed2cc8354b8433e207f96301bed2ff209729a5c2cb8ea1048cf3390bbfe807c13c3ae3c429b6f7d3a0a760801865d5e518f1d5841efa0414c9b6249daccf7a5afa9f1e5d3036104226689a30fbe3a58fef62c171c832efac156ae7a4f57008f8b12a9cf1d883efFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
* win32/win32.c, include/ruby/win32.h (rb_w32_fd_is_text): new function. * win32/win32.c (init_stdhandle): set default mode of stdin as binmode. * io.c (set_binary_mode_with_seek_cur): new function to replace SET_BINARY_MODE_WITH_SEEK_CUR macro. now returns previous mode of the fd and take care of LF in rbuf. * io.c (do_writeconv): set text mode when needed. * io.c (io_read): need to change the mode of the IO to binmode temporally when the length for IO#read, because IO#read with length must behave so. * test/ruby/test_io_m17n.rb (TestIO_M17N#est_{read_with_length, read_with_length_binmode,get[cs]_and_read_with_binmode, read_with_binmode_and_get[cs],read_write_with_binmode}): tests for above changes. all patches are written by Hiroshi Shirosaki. [ruby-core:41496] [Feature #5714] * test/ruby/test_io_m17n.rb (TestIO_M17N#test_{read_with_binmode_and_get[cs]}): only for Windows. * test/ruby/test_io_m17n.rb (TestIO_M17N#test_{read_with_length, * io.c (rb_sys_fail_path): move the definition. Move above for using it in set_binary_mode_with_seek_cur(). * io.c (set_binary_mode_with_seek_cur): fix improper seek cursor. Seeking file cursor with setting binary mode has possibility to cause infinite loop. Fixed the bug and refined error handling. Introduced at r34043. And cleanups as below. Remove unnecessary parentheses of `fptr`. Use return value of setmode(). * test/ruby/test_io_m17n.rb (TestIO_M17N#test_seek_with_setting_binmode): add a test for abobe. [ruby-core:41671] [Bug #5714] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34546 b2dd03c8-39d4-4d8f-98ff-823fe69b080eUh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing