mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Fix harmless LC_COLLATE[_MASK] confusion.
Commitca051d8b10called newlocale(LC_COLLATE, ...) instead of newlocale(LC_COLLATE_MASK, ...), in code reached only on FreeBSD. They have the same value on that OS, explaining why it worked. Fix. Back-patch to 14, whereca051d8b10landed.
This commit is contained in:
		@@ -1683,7 +1683,7 @@ get_collation_actual_version(char collprovider, const char *collcollate)
 | 
			
		||||
		locale_t	loc;
 | 
			
		||||
 | 
			
		||||
		/* Look up FreeBSD collation version. */
 | 
			
		||||
		loc = newlocale(LC_COLLATE, collcollate, NULL);
 | 
			
		||||
		loc = newlocale(LC_COLLATE_MASK, collcollate, NULL);
 | 
			
		||||
		if (loc)
 | 
			
		||||
		{
 | 
			
		||||
			collversion =
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user