X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Subject: python: fix for locale.bind_textdomain_codeset From: "Yaakov (Cygwin/X)" To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" Date: Thu, 23 Dec 2010 20:45:33 -0600 Message-ID: <1293158733.4804.9.camel@YAAKOV04> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Jason, Support for bind_textdomain_codeset() in Python's locale module (namely Modules/_localemodule.c) is dependent on an AC_CHECK_FUNC test. Unfortunately, this only looks in libc, where we (and other non-glibc platforms) rely on libintl for these functions, resulting in a false negative. Since _locale is already linked against libintl, an easy fix is to just add ac_cv_func_bind_textdomain_codeset=yes to CYGCONF_ARGS. When you updated Python to 2.6.6, could you include this as well? Yaakov -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple