mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 12:11:15 -06:00 
			
		
		
		
	Bugfix: prevent crash when user entered Unicode characters in notes. #1590
This commit is contained in:
		
							parent
							
								
									9fa2a17136
								
							
						
					
					
						commit
						d9d2f3b3ab
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -795,6 +795,9 @@ sub write_gcode { | |||
|             or die "Failed to open $file for writing\n"; | ||||
|     } | ||||
|      | ||||
|     # enable UTF-8 output since user might have entered Unicode characters in fields like notes | ||||
|     binmode $fh, ':utf8'; | ||||
|      | ||||
|     # write some information | ||||
|     my @lt = localtime; | ||||
|     printf $fh "; generated by Slic3r $Slic3r::VERSION on %04d-%02d-%02d at %02d:%02d:%02d\n\n", | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci