mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Merged revisions 84836 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r84836 | matthias.klose | 2010-09-15 15:06:09 +0200 (Mi, 15 Sep 2010) | 3 lines Try harder on issue #7356: ctypes.util: Make parsing of ldconfig output independent of the locale. Set LC_ALL=C too. ........
This commit is contained in:
		
							parent
							
								
									25d535ea6a
								
							
						
					
					
						commit
						f01611979b
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -219,7 +219,7 @@ def _findSoname_ldconfig(name):
 | 
			
		|||
            # XXX assuming GLIBC's ldconfig (with option -p)
 | 
			
		||||
            expr = r'(\S+)\s+\((%s(?:, OS ABI:[^\)]*)?)\)[^/]*(/[^\(\)\s]*lib%s\.[^\(\)\s]*)' \
 | 
			
		||||
                   % (abi_type, re.escape(name))
 | 
			
		||||
            f = os.popen('LANG=C /sbin/ldconfig -p 2>/dev/null')
 | 
			
		||||
            f = os.popen('LC_ALL=C LANG=C /sbin/ldconfig -p 2>/dev/null')
 | 
			
		||||
            try:
 | 
			
		||||
                data = f.read()
 | 
			
		||||
            finally:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue