[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gmake UTF-8 Support?
From: |
Kaz Kylheku (gmake) |
Subject: |
Re: Gmake UTF-8 Support? |
Date: |
Wed, 29 Sep 2021 10:06:22 -0700 |
User-agent: |
Roundcube Webmail/0.9.2 |
On 2021-09-29 09:31, Eli Zaretskii wrote:
Date: Wed, 29 Sep 2021 09:23:32 -0700
From: "Kaz Kylheku (gmake)" <729-670-0061@kylheku.com>
Cc: help-make@gnu.org
If the program allows bytes in the range 0x80 to 0xFF
to be parts of identifiers then you can use Unicode
characters in identifiers.
I think the underlying OS also must support UTF-8 encoded file names
(or be agnostic to file-name encodings). So, for example, on
MS-Windows using UTF-8 in Makefiles will not work if it is used for
file names.
Test using Cygwin:
0:BLACKBOX:~/test$ cat Makefile.u8
対象:
touch $@
0:BLACKBOX:~/test$ od -t x1 Makefile.u8
0000000 e5 af be e8 b1 a1 3a 0a 09 74 6f 75 63 68 20 24
0000020 40 0a
0000022
0:BLACKBOX:~/test$ make -f Makefile.u8
touch 対象
0:BLACKBOX:~/test$ ls -lt | head -3
total 573
-rw-r--r-- 1 kaz kaz 0 Sep 29 09:56 対象
-rw-r--r-- 1 kaz kaz 18 Sep 29 09:55 Makefile.u8
0:BLACKBOX:~/test$
When I open the dire^H^H^H^Hfolder in Windows Explorer,
the 対象 name correctly appears, too. Thus, native Windows understands
the name properly.
I suspect there may be some caveats, including the manner in which
GNU Make has been ported, using what environment.
- Gmake UTF-8 Support?, Jon Forrest, 2021/09/29
- Re: Gmake UTF-8 Support?, Kaz Kylheku (gmake), 2021/09/29
- Re: Gmake UTF-8 Support?, Eli Zaretskii, 2021/09/29
- Re: Gmake UTF-8 Support?,
Kaz Kylheku (gmake) <=
- Re: Gmake UTF-8 Support?, Eli Zaretskii, 2021/09/29
- Re: Gmake UTF-8 Support?, Kaz Kylheku (gmake), 2021/09/29
- Re: Gmake UTF-8 Support?, Eli Zaretskii, 2021/09/29
- Re: Gmake UTF-8 Support?, Jon Forrest, 2021/09/29
- Re: Gmake UTF-8 Support?, Kaz Kylheku (gmake), 2021/09/29
- Re: Gmake UTF-8 Support?, Eli Zaretskii, 2021/09/30
- Re: Gmake UTF-8 Support?, Kaz Kylheku (gmake), 2021/09/30