From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: updating macuvs.h? Date: Wed, 14 Jan 2015 14:43:46 -0600 Message-ID: <85a91l6qkd.fsf@stephe-leake.org> References: <85ioga75yl.fsf@stephe-leake.org> <83d26i3u1r.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1421268266 7268 80.91.229.3 (14 Jan 2015 20:44:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Jan 2015 20:44:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 14 21:44:20 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YBUnb-00006f-BG for ged-emacs-devel@m.gmane.org; Wed, 14 Jan 2015 21:44:19 +0100 Original-Received: from localhost ([::1]:48040 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBUna-0005u3-SL for ged-emacs-devel@m.gmane.org; Wed, 14 Jan 2015 15:44:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YBUnX-0005ty-A3 for emacs-devel@gnu.org; Wed, 14 Jan 2015 15:44:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YBUnS-0002HX-AY for emacs-devel@gnu.org; Wed, 14 Jan 2015 15:44:15 -0500 Original-Received: from gproxy9-pub.mail.unifiedlayer.com ([69.89.20.122]:38663) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1YBUnS-0002FF-3C for emacs-devel@gnu.org; Wed, 14 Jan 2015 15:44:10 -0500 Original-Received: (qmail 6334 invoked by uid 0); 14 Jan 2015 20:44:06 -0000 Original-Received: from unknown (HELO CMOut01) (10.0.90.82) by gproxy9.mail.unifiedlayer.com with SMTP; 14 Jan 2015 20:44:06 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by CMOut01 with id fwk01p00o2UdiVW01wk3tC; Wed, 14 Jan 2015 13:44:06 -0700 X-Authority-Analysis: v=2.1 cv=fJeqg/qe c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=TeMFXEv2S7AA:10 a=9i_RQKNPAAAA:8 a=hEr_IkYJT6EA:10 a=jrwKn-8xaegA:10 a=YNv0rlydsVwA:10 a=mDV3o1hIAAAA:8 a=2hw1kHqHjkQ81BrXCAQA:9 a=jGl5R5eB7OROTY-9:21 a=mxdz_WOdG3HRRU3u:21 Original-Received: from [70.94.38.149] (port=52244 helo=takver) by host114.hostmonster.com with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.82) (envelope-from ) id 1YBUnH-0000JC-Vg for emacs-devel@gnu.org; Wed, 14 Jan 2015 13:44:00 -0700 In-Reply-To: <83d26i3u1r.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 14 Jan 2015 05:44:32 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 70.94.38.149 authed with stephen_leake@stephe-leake.org} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 69.89.20.122 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:181266 Archived-At: Eli Zaretskii writes: >> From: Stephen Leake >> Date: Tue, 13 Jan 2015 14:58:58 -0600 >> >> I just did 'git pull' on master, and recompiled, on Windows with msys2 >> mingw64. Now git status shows 'src/macuvs.h' as changed. It has DOS line >> endings instead of Unix; no other changes. > > This most probably means some of the tools involved in producing that > file are not MSYS programs, but native Windows (MinGW) programs. MSYS > programs behave Posix-like and produce Unix-style EOLs. Finds those > tools and replace them by their MSYS namesakes, and the problem will > go away. I think this is the makefile line that produces that file (from admin/unidata/Makefile): ${top_srcdir}/src/macuvs.h: ${srcdir}/uvs.el ${srcdir}/IVD_Sequences.txt | \ ${srcdir}/uvs.elc $(AM_V_GEN)${emacs} -L ${srcdir} -l uvs \ --eval '(uvs-print-table-ivd (unmsys--file-name "${srcdir}/IVD_Sequences.txt") "Adobe-Japan1")' \ > $@ This runs Emacs, which is a native MinGW program at this point. I don't think we want to build an MSYS version just for this :). That invokes this fuction (in admin/unidata/uvs.el): (defun uvs-print-table-ivd (filename collection-id &optional sequence-id-to-glyph-func) "Print a C array definition of a UVS table for IVD Sequences. FILENAME specifies the IVD Sequences file. COLLECTION-ID is a string specifying the identifier of the collection to extract (e.g., \"Adobe-Japan1\"). SEQUENCE-ID-TO-GLYPH-FUNC is a function to convert an identifier string of the sequence to a glyph number, and nil means to convert \"CID\\+[0-9]+\" to the corresponding number." (or sequence-id-to-glyph-func (setq sequence-id-to-glyph-func (lambda (sequence-id) (string-match "\\`CID\\+\\([[:digit:]]+\\)\\'" sequence-id) (string-to-number (match-string 1 sequence-id))))) (let ((uvs-alist (with-temp-buffer (insert-file-contents filename) (uvs-alist-from-ivd collection-id sequence-id-to-glyph-func)))) (princ "/* Automatically generated by uvs.el. */\n") (princ (format "static const unsigned char mac_uvs_table_%s_bytes[] =\n {\n" (replace-regexp-in-string "[^_[:alnum:]]" "_" (downcase collection-id)))) (with-temp-buffer (set-buffer-multibyte nil) (uvs-insert-alist-as-bytes uvs-alist) (uvs-dump)) (princ " };\n"))) `uvs-dump' uses `terpri' to insert the newline; that inserts "\n". So this needs a `set-buffer-file-coding-system'? I don't see where the buffer is actually written to the file. On the other hand, why has no other MinGW builder seen this before? -- -- Stephe