| Deutsch English Français Italiano |
|
<vustjv$2ga6$1@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: David Brown <david.brown@hesbynett.no> Newsgroups: comp.lang.c Subject: Re: Rationale for aligning data on even bytes in a Unix shell file? Date: Wed, 30 Apr 2025 12:21:51 +0200 Organization: A noiseless patient Spider Lines: 37 Message-ID: <vustjv$2ga6$1@dont-email.me> References: <vuih43$2agfa$1@dont-email.me> <vun04h$2fjrn$2@raubtier-asyl.eternal-september.org> <vun1nh$22hc5$3@dont-email.me> <vunak2$2p980$1@raubtier-asyl.eternal-september.org> <vunbgo$2q5u8$1@dont-email.me> <vunbjg$2q72n$1@raubtier-asyl.eternal-september.org> <vunhtp$301lb$1@dont-email.me> <vunib4$308ou$1@raubtier-asyl.eternal-september.org> <vunilp$30n57$1@raubtier-asyl.eternal-september.org> <vcMPP.1383459$f81.136711@fx48.iad> <vuobu5$3o38b$2@raubtier-asyl.eternal-september.org> <SxOPP.2986762$t84d.1636746@fx11.iad> <20250428203634.00006e09@yahoo.com> <vupvph$1a961$1@dont-email.me> <vurvru$34gfq$4@dont-email.me> <vusiqn$3ov7j$1@dont-email.me> <vuskeh$3p7jv$1@dont-email.me> <vusp6a$3ulkn$1@dont-email.me> <vusrsq$16ll$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 30 Apr 2025 12:21:52 +0200 (CEST) Injection-Info: dont-email.me; posting-host="cc9518a6979defc66e3110f6f2f87cab"; logging-data="82246"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18CMD4zsf78Dw7PhfB+KFPy54EJYAicgL0=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cancel-Lock: sha1:DSG6b6XZZqRZTt13jmHzQfS94hU= Content-Language: en-GB In-Reply-To: <vusrsq$16ll$1@dont-email.me> On 30/04/2025 11:52, Janis Papanagnou wrote: > On 30.04.2025 11:06, Muttley@DastardlyHQ.org wrote: >> On Wed, 30 Apr 2025 09:45:20 +0200 >> David Brown <david.brown@hesbynett.no> wibbled: >>> More relevant to this group, it make also be convenient for people >>> trying to work with big C code bases that were written on Windows and >>> you now want to compile (for whatever target you want) them on Linux. >>> I've seen code bases developed on Windows machines where the >>> capitalisation of include directives was inconsistent - that works on >>> case-insensitive filesystems, but not on case-sensitive systems. (Yes, >>> I know there are many other ways to deal with such issues, but putting >>> the source code in a case-insensitive directory on ext4 is one option.) >> >> I've seen on more than one occasion C++ (not C yet) projects where there >> were 2 files only different in case, eg: Network.cpp and network.cpp where >> the former would be the class and the latter would be procedural support code. >> Good luck unzipping that on Windows or any other case insensitive file system. > > For low-level system software like network functionality that > would probably anyway not work on Windows in the first place > without change, independent of the capitalization. (But the > "case insensitive file system" issues, like the above mentioned > case inconsistencies, are of course an inherent problem.) > > And there's of course a related problem if we port software with > longer maximum filename lengths to systems with shorter filename > lengths. > What systems are there now with filename length limits that would ever be relevant to hand-typed names? Filename length limits can occasionally be relevant in some contexts (I've seen it in web spiders that try to turn complete URL's into a single filenames), but unless you are trying to compile code on DOS, any system will support any length of filename that someone would bother typing into an "#include" line.