Re: Iconv.html and iconv.html

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <Y5NiaddLSK8OqMOU@vapier>
On 02 Dec 2022 17:06, Torbjorn SVENSSON wrote:
> I have been building a toolchain for the arm-none-eabi target using a 
> rather recent snapshot of newlib. While building the html documentation, 
> I noticed that there will be generated the two files named Iconv.html 
> and iconv.html.
> While this works fine for case sensitive file systems, it's obvious that 
> this will not have the desired outcome on a case-insensitive file 
> system, such as on Windows system.
> 
> The Iconv.html file contains the chapter description and the iconv.html 
> file contains the description of the iconv-function.
> 
> Can someone, with the knowledge of how these filenames are generated, 
> change one of them so that the filenames differ on a case insensitive 
> file system?

the naming is straightforward -- the @node attribute is turned directly into
the filename.  we use @node Iconv for the chapter and @node iconv for the C
function APIs.  so the fix is to change one of them.

the sub-areas have a 1-to-1 mapping to the chapter (e.g. stdio/->Stdio,
iconv/->Iconv, etc...).  the generated APIs similarly map source file
names to the chapter (e.g. iconv.c->iconv, strncmp.c->strncmp).  but they
can map any number of functions inside those source files, and we might
rename them as makes sense in general for our organization.  so i'm more
inclined to change the generated API chapters, and do it across the board
instead of a one-off for iconv.c.

anyone want to bikeshed the naming convention ?  gen_xxx ?  src_xxx ?
there doesn't seem to be a standard here in the GNU toolchain space that
i can see.  bfd/ has a conflict, but they just do a one-off rename with
bfd.texi->bfdt.texi for the makedoc output.
-mike
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmOTYmkACgkQQWM7n+g3
9YGB0RAA43EcHJayeKoZ5mSgmFTFieJ6GWKyhfBi+uA+dfGWNRwRgQmovtAnBRJk
mvZFcUui2W05ddjbCAZ7n3n2mrhXUJkgLikJYiX9F7dhVd3h9bzH9b8yvE93u1Ib
7WZMZO0TpyVLpu7ruxVrSucgpvdCJc42LQh2PQkY+mOGio+MhUGkruDTEV6tpG3B
2C1o7WdbrLd8ITvnspAyKc2ixxeEmYWFQxci7fRlmkbt6JoPgmcEbBw7GE0XZG5d
Q/UDvkUHjxX+gtkPDlICyJWq58lnkJEdAZ9AAjQaEnvQ7XXEoWfQmXhmK5Zf9X3D
r/m78MDK/BkEieekpzmVDO2vLTfPic/dCabEmUFMrj1OTrRz5RD+AMEo4VS/3sfk
Qv6n6JwXN7TpO5ccpBlfqeoifm6s9bq2Tu5qg31HsRAe41+T8XsW2t27W/e3wvm2
K27sw9QVJ96IiXyWShZnjgXiBrkPYDjr+sA4pglVjzxVy27wydEqKNCI7+qzPZuc
5q8Z7JmckDQjfBrgfh9qolZUIsA/pFuX0yFs5RYk3ZZvK5tNy3VDeHAxjhipIYJ9
I08Ws9E7aqASji54YnQqs6SplCfKj8r0QoAgu5aO0TfDHJCvy4noOtGX9VmLaTC3
+0D89pO2mHK4r1AqzsBCNL0KZ7TenmE2+0NhcwLfqAiHkeRhaGI=
=+2fL
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.