mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* win32.c (init_stdhandle): set binmode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									3e75a0a763
								
							
						
					
					
						commit
						87746352f4
					
				
					 2 changed files with 13 additions and 0 deletions
				
			
		|  | @ -1,3 +1,7 @@ | |||
| Mon Aug 25 23:56:42 2008  NAKAMURA Usaku  <usa@ruby-lang.org> | ||||
| 
 | ||||
| 	* win32.c (init_stdhandle): set binmode. | ||||
| 
 | ||||
| Mon Aug 25 23:38:17 2008  Tadayoshi Funaba  <tadf@dotrb.org> | ||||
| 
 | ||||
| 	* lib/date/format.rb(strftime): can print with given arbitrary | ||||
|  |  | |||
|  | @ -1796,12 +1796,21 @@ init_stdhandle(void) | |||
|     if (fileno(stdin) < 0) { | ||||
| 	stdin->_file = open_null(0); | ||||
|     } | ||||
|     else { | ||||
| 	setmode(fileno(stdin), O_BINARY); | ||||
|     } | ||||
|     if (fileno(stdout) < 0) { | ||||
| 	stdout->_file = open_null(1); | ||||
|     } | ||||
|     else { | ||||
| 	setmode(fileno(stdout), O_BINARY); | ||||
|     } | ||||
|     if (fileno(stderr) < 0) { | ||||
| 	stderr->_file = open_null(2); | ||||
|     } | ||||
|     else { | ||||
| 	setmode(fileno(stderr), O_BINARY); | ||||
|     } | ||||
|     if (nullfd >= 0 && !keep) close(nullfd); | ||||
|     setvbuf(stderr, NULL, _IONBF, 0); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 usa
						usa