mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-27 04:40:59 +01:00 
			
		
		
		
	50080: add missing STOUC() in casemodify()
This commit is contained in:
		
							parent
							
								
									a270da2ada
								
							
						
					
					
						commit
						baa12a413f
					
				
					 2 changed files with 6 additions and 2 deletions
				
			
		|  | @ -1,3 +1,7 @@ | |||
| 2022-04-20  Jun-ichi Takimoto  <takimoto-j@kba.biglobe.ne.jp> | ||||
| 
 | ||||
| 	* 50080: Src/hist.c: add missing STOUC() in casemodify() | ||||
| 
 | ||||
| 2022-04-19  Bart Schaefer  <schaefer@zsh.org> | ||||
| 
 | ||||
| 	* unposted (cf. users/27656 (Tomasz Pala), users/27660): | ||||
|  |  | |||
|  | @ -2254,10 +2254,10 @@ casemodify(char *str, int how) | |||
| 	    int c; | ||||
| 	    int mod = 0; | ||||
| 	    if (*str == Meta) { | ||||
| 		c = str[1] ^ 32; | ||||
| 		c = STOUC(str[1] ^ 32); | ||||
| 		str += 2; | ||||
| 	    } else | ||||
| 		c = *str++; | ||||
| 		c = STOUC(*str++); | ||||
| 	    switch (how) { | ||||
| 	    case CASMOD_LOWER: | ||||
| 		if (isupper(c)) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue