Date: Mon, 10 Jun 2024 20:45:06 -0600 From: Warner Losh <imp@bsdimp.com> To: justsomelessons <justsomelessons@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Start week from Monday in cal(1) Message-ID: <CANCZdfqdCJooEbgAG7qK%2BtZOm14_2TYV945QYWz-_qV7=V3UeQ@mail.gmail.com> In-Reply-To: <CALAPbsL7SSYbxAbb_Gqg-zg_5B2G1S_jqMFb7FZSjWb5LPZcpg@mail.gmail.com> References: <CALAPbsL7SSYbxAbb_Gqg-zg_5B2G1S_jqMFb7FZSjWb5LPZcpg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000885a72061a94414c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Jun 9, 2024 at 10:25=E2=80=AFAM justsomelessons <justsomelessons@gm= ail.com> wrote: > Hello! > > As you can find, FreeBSD cal(1) man page says that > "It is not possible to display Monday as the first day of the week with > cal". > > But daily it is more comfortable if weeks start from Monday. > I know that there is ncal (vertical) mode which always starts from Monday= , > but any other calendar in the world (software or that on the wall) is > horizontal, > so ncal is uncomfortable too. > So I've made a simple patch that adds -M option to cal(1) to start > week from Monday: > https://codeberg.org/vall/stuff/src/branch/main/ncalfixed These look quite interesting. I've not had a chance to test them, but the code changes look good, and not invasive. Is there a chance you'd be able to submit them via a github pull request against https://github.com/freebsd/freebsd-src? That would be the best way currently to make sure this doesn't get lost and will make its way into the tree, or at least get feedback about what's needed to do so... Warner By the way, Debian also has set of patches that adds such option: > https://salsa.debian.org/meskes/bsdmainutils/-/tree/master/debian/patches > > Can I ask if such an option can be added to the FreeBSD base? > It's highly appreciative if my tiny patches with or without > modifications can be helpful. > Or are there historical or some other reasons for nonpossibility to > start weeks from Monday? > > Thank you! > ----- > Best regards, > Valentine Astakhov. > > --000000000000885a72061a94414c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">= <div dir=3D"ltr" class=3D"gmail_attr">On Sun, Jun 9, 2024 at 10:25=E2=80=AF= AM justsomelessons <<a href=3D"mailto:justsomelessons@gmail.com">justsom= elessons@gmail.com</a>> wrote:<br></div><blockquote class=3D"gmail_quote= " style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);= padding-left:1ex">Hello!<br> <br> As you can find, FreeBSD cal(1) man page says that<br> "It is not possible to display Monday as the first day of the week wit= h cal".<br> <br> But daily it is more comfortable if weeks start from Monday.<br> I know that there is ncal (vertical) mode which always starts from Monday,<= br> but any other calendar in the world (software or that on the wall) is<br> horizontal,<br> so ncal is uncomfortable too.<br> So I've made a simple patch that adds -M option to cal(1) to start<br> week from Monday:<br> <a href=3D"https://codeberg.org/vall/stuff/src/branch/main/ncalfixed" rel= =3D"noreferrer" target=3D"_blank">https://codeberg.org/vall/stuff/src/branc= h/main/ncalfixed</a></blockquote><div><br></div><div>These look quite inter= esting. I've not had a chance to test them, but</div><div>the code chan= ges look good, and not invasive.</div><div><br></div><div>Is there a chance= you'd be able to submit them via a github pull request against <a href= =3D"https://github.com/freebsd/freebsd-src">https://github.com/freebsd/free= bsd-src</a>? That would be the best way currently to make sure this doesn&#= 39;t get lost and will make its way into the tree, or at least get feedback= about what's needed to do so...</div><div><br></div><div>Warner</div><= div><br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px= 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> By the way, Debian also has set of patches that adds such option:<br> <a href=3D"https://salsa.debian.org/meskes/bsdmainutils/-/tree/master/debia= n/patches" rel=3D"noreferrer" target=3D"_blank">https://salsa.debian.org/me= skes/bsdmainutils/-/tree/master/debian/patches</a><br> <br> Can I ask if such an option can be added to the FreeBSD base?<br> It's highly appreciative if my tiny patches with or without<br> modifications can be helpful.<br> Or are there historical or some other reasons for nonpossibility to<br> start weeks from Monday?<br> <br> Thank you!<br> -----<br> Best regards,<br> Valentine Astakhov.<br> <br> </blockquote></div></div> --000000000000885a72061a94414c--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqdCJooEbgAG7qK%2BtZOm14_2TYV945QYWz-_qV7=V3UeQ>