mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 18:10:56 +01:00 
			
		
		
		
	24696: turn off MULTIBYTE by default in sh emulation
This commit is contained in:
		
							parent
							
								
									697d170928
								
							
						
					
					
						commit
						d70cfd3310
					
				
					 3 changed files with 12 additions and 5 deletions
				
			
		|  | @ -1,3 +1,8 @@ | |||
| 2008-03-07  Peter Stephenson  <pws@csr.com> | ||||
| 
 | ||||
| 	* 24696: Doc/Zsh/options.yo, Src/options.c: turn off MULTIBYTE | ||||
| 	by default in sh emulation. | ||||
| 
 | ||||
| 2008-03-06  Wayne Davison  <wayned@users.sourceforge.net> | ||||
| 
 | ||||
| 	* 24693: Src/utils.c: provide better errors when skipping | ||||
|  |  | |||
|  | @ -427,10 +427,10 @@ item(tt(MARK_DIRS) (tt(-8), ksh: tt(-X)))( | |||
| Append a trailing `tt(/)' to all directory | ||||
| names resulting from filename generation (globbing). | ||||
| ) | ||||
| pindex(MULTIBYTE <D>) | ||||
| pindex(MULTIBYTE) | ||||
| cindex(characters, multibyte, in expansion and globbing) | ||||
| cindex(multibyte characters, in expansion and globbing) | ||||
| item(tt(MULTIBYTE))( | ||||
| item(tt(MULTIBYTE) <C> <K> <Z>)( | ||||
| Respect multibyte characters when found in strings. | ||||
| When this option is set, strings are examined using the | ||||
| system library to determine how many bytes form a character, depending | ||||
|  | @ -438,8 +438,10 @@ on the current locale.  This affects the way characters are counted in | |||
| pattern matching, parameter values and various delimiters. | ||||
| 
 | ||||
| The option is on by default if the shell was compiled with | ||||
| tt(MULTIBYTE_SUPPORT); otherwise it is off by default and has no effect if | ||||
| turned on. | ||||
| tt(MULTIBYTE_SUPPORT) except in tt(sh) emulation; otherwise it is off by | ||||
| default and has no effect if turned on.  The mode is off in tt(sh) | ||||
| emulation for compatibility but for interative use may need to be | ||||
| turned on if the terminal interprets multibyte characters. | ||||
| 
 | ||||
| If the option is off a single byte is always treated as a single | ||||
| character.  This setting is designed purely for examining strings | ||||
|  |  | |||
|  | @ -173,7 +173,7 @@ static struct optname optns[] = { | |||
| {{NULL, "monitor",	      OPT_SPECIAL},		 MONITOR}, | ||||
| {{NULL, "multibyte", | ||||
| #ifdef MULTIBYTE_SUPPORT | ||||
| 			      OPT_ALL | ||||
| 			      OPT_EMULATE|OPT_ZSH|OPT_CSH|OPT_KSH | ||||
| #else | ||||
| 			      0 | ||||
| #endif | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue