Am Mon, Jul 22, 2024 at 03:44:36PM + schrieb stefan1:
> I mentioned -flto above, because without lto, gcc doesn't see that doing
> init_func(&var);
> initializes the var variable in some cases.
That's a bug. Maybe report it. Although, when last I reported a bug to
gcc, all that happened wa
Am Thu, Jun 20, 2024 at 11:53:45PM +0200 schrieb Страхиња Радић:
> Given that, why complicate code by introducing a separate, superfluous,
> type?
Let me offer a counterpoint: Expressiveness. If I make a function return
a bool, then everyone from the world's worst junior dev to Ken Thompson
himsel
Am Sat, Jun 15, 2024 at 06:10:50PM +0200 schrieb Vincent Lefevre:
> IMHO, this has been poorly designed. There should have been a macro
> taking a parameter N (an integer constant expression), where the
> type would have been valid for any N up to the maximum width (thus
> at least 64). For portabi
Am Thu, Mar 21, 2024 at 06:01:25PM -0300 schrieb Brian Mayer:
> Hello.
>
> I compiled ubase using GCC and musl, but using passwd gives me an error
> message:
>
> $ passwd root
> passwd: getpass: No such device or address
>
> Any ideas?
>
> Thanks
>
Looking at the getpass() source, it looks like o
Am Sat, Feb 17, 2024 at 09:45:44PM -0500 schrieb Tim Culverhouse:
> Hello - I am the author of a TUI library and received a bug report regarding
> cursor placement on exiting an application.
>
> I was able to narrow down a simple reproducer to how st a XTSMGRAPHICS query:
>
> echo -e "\x1b[?2;1;0
Am Sun, Oct 29, 2023 at 06:00:18PM +0100 schrieb Страхиња Радић:
> mkdir returning EISDIR is definitely not a part of POSIX.[1]
>
> [1]:
> https://pubs.opengroup.org/onlinepubs/9699919799/functions/mkdir.html#tag_16_325_05
That's where you're wrong. Any function can fail for any reason unless
POS
Am Sat, Oct 28, 2023 at 01:48:07PM -0600 schrieb Randy Palamar:
> This is a problem with mkdir in sbase. It probably shouldn't error out
> when mkdir(3p) fails and sets errno to EEXIST or EISDIR. I'll send a
> patch to hackers@ soon.
>
> - Randy
>
That is one of the jobs of the -p switch to mkdir.
Am Thu, Sep 21, 2023 at 04:05:17PM +0200 schrieb David Demelier:
> Hi,
>
> It's near to impossible to convert a CMake project to make
> automatically, CMake is almost like a scripting language given the
> numerous of things you can do with it.
>
> Keep in mind that plain make (POSIX) is enough for
Am Tue, Jun 20, 2023 at 04:44:44PM +0200 schrieb Страхиња Радић:
> On second thought, I think Markus may be right. It is GPL which would forbid
> non-compatible sublicensing (which is changing the license of derived works
> *completely*), not Expat. Under Expat, you can sublicense *your copy/fork*
e work of foo, and so I as creator of bar need permission from
you as creator of foo to create it. Luckily I have your permission. It
is in the license (license and permission mean substantially the same
thing).
So I can release all of bar under the GPL. All I have to do is write
into the documentati
On Wed, Jan 25, 2023 at 04:35:39PM +0100, German Hammerl wrote:
> Hi there,
>
> I am new to this mailing list and have problems to search the
> archives, therefore I dare to ask, even though this question may
> already have been asked and answered before:
>
> In vanilla dwm, by, e.g., starting
On Fri, Jan 13, 2023 at 07:53:41PM -0600, Dave Blanchard wrote:
> I experimented with st for a week or so, before finally realizing that
> it's poorly-written trash. It has no advantages over XTerm at all.
>
So where's the patch?
Given that a terminal emulator is a necessary part of the Trusted
C
On Wed, Aug 03, 2022 at 05:14:20PM +0200, Laslo Hunhold wrote:
> I have one question here: Doesn't ranlib(1) need to understand the
> ar-format to be able to add the symbol-table-file?
>
Not if it uses "ar r" to add the symbol table to the archive. Although
that is contingent on the symbol table h
On Wed, Aug 03, 2022 at 03:21:30PM +0200, Laslo Hunhold wrote:
> In a way, ar(1) is merely an archiver, but POSIX added a function that
> only applies to exclusively object-file-containing-archives, but stays
> away from specifics[0]:
> [...]
Yeah, POSIX be like that sometimes. You can have a perf
On Sun, Jul 24, 2022 at 08:04:05PM +0200, Страхиња Радић wrote:
> On 22/07/23 11:06, Tom Schwindl wrote:
> > Again, you'd have to rely on a tool which isn't defined.
> > If a system says it's POSIX compliant, we can assume that the `-s' option
> > exists, but there is no standard which tells us whe
On Sun, Jul 10, 2022 at 08:20:04AM +0200, Roberto E. Vargas Caballero wrote:
> I use surf in this way too. It works but it has problems with some pages.
> It is hard to kow the patches that you distribution adds to the upstream
> project.
>
>
Solvable problem:
$ apt-get source webkitgtk
$ cd webk
On Thu, Jun 16, 2022 at 08:18:16PM +0300, an2qzavok wrote:
> >do not roll your own crypto
> I believe this refers only to inventing your own algorithm, just
> writing your own implementation of existing and tested algorithms is
> fine.
>
As I tried to point out with the MAC example, cryptography i
On Wed, Jun 15, 2022 at 07:59:34PM -0500, T Taylor Gurney wrote:
> Are you familiar with loop-AES?
Not specifically, but I had heard of loop-device based encryption
before. The manpage for losetup states that support for such was removed
in favor of dm-crypt.
> My understanding is that the projec
On Wed, Jun 15, 2022 at 12:49:07PM -0500, T Taylor Gurney wrote:
> All,
>
> Working on another statically-linked Linux distro.
>
> Getting an encrypted root partition is a problem. The kernel has built-in
> support for this and I am plenty familiar with it. But the supporting
> userspace tool, cr
On Sun, May 29, 2022 at 10:20:05PM +, Rodrigo Martins wrote:
> It was thus said that the Great Markus Wichmann once stated:
> > And you fundamentally cannot change anything about the userspace of another
> > program, at least not in UNIX.
>
> When I open file descriptor
On Sat, May 28, 2022 at 07:19:24PM +, Rodrigo Martins wrote:
> Hello, Markus,
>
> Thank for filling in the details. I should do more research next time.
>
> I tried to write a program that does the same as stdbuf(1), but using
> setbuf(3). Unfortunately it seems the buffering mode is reset acro
On Sat, May 28, 2022 at 06:09:04PM +, Hadrien Lacour wrote:
> Now, I wonder how it'd be fixed ("it" being how does the read end of the pipe
> signal to the write one the kind of buffering it wants) in a perfect world.
The problem ultimately stems from the mistaken idea that buffering is
invisi
On Sat, May 28, 2022 at 08:38:49AM +, Hadrien Lacour wrote:
> On Sat, May 28, 2022 at 03:33:16AM +, Rodrigo Martins wrote:
> > Hello,
> >
> > The problem here is I/O buffering. I suspect it to happen in the C
> > standard library, specifically on the printf function family.
You know, that
On Fri, May 06, 2022 at 10:27:32PM -0400, Christopher Brown wrote:
> Hello,
>
> I have been intermittently encountering an issue where dwm messes up
> my monitor resolutions when powering on my two monitors. Frequently,
> both screens will be combined on one monitor while the other monitor
> does n
On Sat, Jan 01, 2022 at 08:09:38PM +0100, Mattias Andrée wrote:
> .POSIX:
>
> CC = c99
> # Required as POSIX doesn't mandate that it is defined by default
>
> OBJ =\
> alpha.o\
> beta.o\
> gamma.o
>
> LINUX_AMD64_OBJ = $(OBJ:.o=.linux-amd64-o)
> OPENBSD_AMD64_OBJ = $(OBJ:.o=.openb
On Thu, Oct 14, 2021 at 12:28:52PM -0400, Greg Reagle wrote:
> FYI
>
> Useful, but a lot of wasted screen space on my monitor:
> man dwm
>
> MUCH better! I see the entire man page:
> tcvt -c 4 man dwm
>
You know, if you were trying to shill the program, you might have done
better if you h
On Thu, Sep 16, 2021 at 08:26:27AM +0200, Laslo Hunhold wrote:
> The gaslighting regarding Wayland wasted me a lot of time, as I'm told
> or I read every year that _now_ would be the time to switch to Wayland.
Just like _this_ year is the year of the Linux desktop? And then, when
the market share
On Sat, May 22, 2021 at 06:50:51AM +, Tobias Bengfort wrote:
> I just found out about this protocol:
>
> https://sw.kovidgoyal.net/kitty/keyboard-protocol.html
>
> Basically it provides a way to send unambigous esc and other keys as well as
> key release events to terminal programs while being
On Tue, Apr 13, 2021 at 09:58:56PM +0300, Sergey Matveev wrote:
> *** Markus Wichmann [2021-04-13 20:17]:
> >Y'know, while we're bikeshedding, why not just use SHA-3?
>
> Answer is: https://www.imperialviolet.org/2017/05/31/skipsha3.html
I don't care about the speed
On Tue, Apr 13, 2021 at 05:08:31PM +0200, Mattias Andrée wrote:
> On Tue, 13 Apr 2021 16:57:39 +0200
> Sagar Acharya wrote:
>
> > Sure, any good signature. SHA512 is stronger than SHA1, MD5 and SHA256. It
> > shouldn't take a second more than others. Why use a weaker checksum?
>
> SHA512 is actua
On Mon, Mar 22, 2021 at 03:15:35PM -0400, Sebastian LaVine wrote:
> The Suckless community is international, and many of course do not speak
> English -- in particular American English -- as a primary language. But as
> an American, the word used in that email address is beyond vulgar, and
> extrem
On Wed, Mar 24, 2021 at 11:12:29PM +0100, Страхиња Радић wrote:
> Didn't know that, thanks. What is the reasoning behind having a separate
> .def.h in the first place then? Wouldn't editing a local copy of config.h from
> the cloned repository suffice?
The idea is that you keep your config.h
On Sat, Oct 24, 2020 at 07:44:43PM +0100, Daniel Littlewood wrote:
> Hi all,
>
> I have noticed a feature from tmux that I would like to have in vanilla st.
> The behaviour is that when the screen resizes, the window is redrawn
> to fit the new size.
> In vanilla st, if I make the window smaller th
On Wed, May 20, 2020 at 12:24:00PM +1000, Александр Рянин wrote:
> I use Arch Linux, dwm and st. Got st through the git clone. Got it without
> patches. Just make && sudo make install. When trying to run mutt st falls
> with an error output:
>
> $ st
> erresc: unknown csi ESC[22;0;0t
> erresc: un
On Sat, Dec 21, 2019 at 07:05:45PM -0800, Michael Forney wrote:
> - Most BSD chmod(1) have -H, -L, and -P options (defaulting to -P),
> and the filesystem *does* record the mode of a symlink, but this mode
> has no affect on the kernel's access checks.
Well, most Linux FSes have the capacity to re
On Wed, Sep 25, 2019 at 04:32:45PM +0200, Laslo Hunhold wrote:
> please excuse the ignorant question, but why would you want to access
> /dev/null? The problem with /dev/urandom is well-known, which is why
> OpenBSD has arc4random(3).
>
You might not, but a library you use might. I remember musl t
On Wed, Sep 25, 2019 at 08:20:52AM +0200, Laslo Hunhold wrote:
> chroot() should never be optional. unveil() might bring the same
> effect, but the unveil()-wrapper in quark doesn't do anything on Linux.
>
chroot() has several detrimental effects, most importantly making it
impossible to access /d
On Tue, Sep 17, 2019 at 12:15:59PM +0200, C.J. Wagenius wrote:
> Hi.
>
> I'm using surf on void linux (musl). I get a whole lot of zombies (sh
> ) when spawning child processes (Go & Find). I don't know where the
> optimal place is to put a waitpid for them but this works for me.
>
> # --- Start
On Sat, Jun 15, 2019 at 09:28:05PM +0200, Mattias Andrée wrote:
> `long double` is able to exactly represent all values exactly
> representable in `uint64_t`, `int64_t` and `double` (big float
> can be used for other languages).
Not guaranteed. What exactly a long double is, is different for each
On Wed, May 15, 2019 at 01:15:43PM +0200, Przemek Dragańczuk wrote:
> LG3D was a WM written in Java, which maximises the irony.
OK, I didn't know that one. Awesome.
> Java apps
> know how to work on it, so they work fine when they think they are
> running on it. The issue has something to do with
On Sun, May 12, 2019 at 01:30:10AM -0700, Michael Forney wrote:
> What about _Generic in C11? This allows you to choose an expression
> based on the type of another expression.
God dammit, looks like I need to get some C11 training under my belt.
Completely forgot _Generic was a thing.
Ciao,
Mark
On Sat, May 11, 2019 at 08:52:32PM +0100, Piotr Oleskiewicz wrote:
> I would prefer to
> write
>
> X(int, i, 1)
>
> rather than
>
> X(int, i, atoi, "%d", 1)
>
> Many thanks,
> Piotr
>
That is going to be tough, as in C in a macro, there is no way to really
determine what type name you
I was being quite serious. Not everything posted on April 1st is a joke.
I eventually got fed up with harmful.cat-v.org, because all it listed
was derision, but no actual justification. Just like you.
Ciao,
Markus
On Mon, Apr 01, 2019 at 04:56:21PM +, sylvain.bertr...@gmail.com wrote:
> Dear David,
>
> You are of the type of human being I, genuinely, sort of dislike. Namely a
> syntax
> kludge and excessive abstraction lover.
>
> Your first sentence is already an insult to "suckless" people: "won't you
On Sat, Mar 09, 2019 at 06:59:38PM +, sylvain.bertr...@gmail.com wrote:
> Hi,
>
> I am coding a little/simple custom language parser, and I was wondering if
> there
> are "suckless" grade alternatives to flex and bison, anyone? But wait...
>
> That said and as of today, I still don't agree w
On Sat, Feb 02, 2019 at 06:15:26PM +, sylvain.bertr...@gmail.com wrote:
> Hi,
>
> I am looking at xml parsers.
>
> I am about to go expat, but I am wondering if there are some interesting
> alternatives I did miss?
>
> --
> Sylvain
>
At work, we're using libxml2. Since we are also using s
On Tue, Jan 29, 2019 at 02:34:19PM -0600, Cág wrote:
> Well, I assumed most people on this list do write C for a living, isn't
> that so?
>
I certainly do. Working in embedded stuff.
> Can you web development in C?
>
You can, since you can do anything in C. But why would you want to? Web
dev i
On Fri, Jan 25, 2019 at 08:41:54PM +0100, Silvan Jegen wrote:
> The opinions on Go are mixed on this list from what I remember.
Oh boy, that again. If you wait a minute, someone will tell you that Go
is bloated because a Hello World clocks in at 2MB or something.
I have a different problem with G
On Thu, Jan 10, 2019 at 08:11:57PM +, sylvain.bertr...@gmail.com wrote:
> Expect POSIX to add significant technical cost over time, like ISO, ANSI,
> the most monstruous being the w3c.
You ever try to write POSIX utilities according to the standard? Believe
me, POSIX of all standards doesn't n
On Fri, Jan 04, 2019 at 02:17:12PM -0200, Caio Barros wrote:
> That's it! Yes, I'm unfotunately still runing a display manager:
> lightdm. I'm slowly getting rid of the bloat [...]
It was never my intention to advise you of how bloated or unbloated your
system can be. To be honest, I don't know if
On Fri, Jan 04, 2019 at 10:20:42AM -0200, Caio Barros wrote:
> Em qui, 3 de jan de 2019 às 23:22, Martin Tournoij
> escreveu:
>
> > Note there is a typo in that hashbang,
>
> oops! I was typing as I went :D. Actually in the original script I
> didn't add the shebang #!/bin/sh, but I did it now
On Sat, Dec 29, 2018 at 08:32:13PM -0500, stephen Turner wrote:
> If one was going to rewrite a cleaner make what would be the recommended
> approach?
> [...]
> I am not skilled enough to start from scratch [...]
>
Maybe start with that. Make is a pretty simple algorithm: You build a
dependency
On Mon, Nov 12, 2018 at 01:14:38PM -0800, Michael Forney wrote:
> Usually how it works is either the display server itself needs to be
> setuid to open those input devices, or some other program (commonly
> systemd-logind) needs to open it on its behalf. I believe Xorg with
> systemd disabled will
On Mon, Nov 12, 2018 at 11:17:49AM +, Alessandro Pistocchi wrote:
> On 12 Nov 2018, at 05:28, Markus Wichmann wrote:
> >
> > That's why you have an iPhone?
>
> You would be surprised. I still use an old phone with the numeric keys
> as a mobile phone.
>
Th
On Mon, Nov 12, 2018 at 03:01:02AM +0100, Alessandro Pistocchi wrote:
> Hi everyone,
>
Hi Alessandro,
> I am new to suckless.org. I have seen some of your projects and I
> think I share a vision with you guys to make things as simple as
> possible but not simpler.
>
That's why you have an iPho
On Thu, Nov 01, 2018 at 04:12:40PM +0100, John Soros wrote:
> Yes! This is much, much better! Thanks. Pity that it still doesn't work
> on OpenBSD.
If the info I gathered over the course of the last hour is correct, then
the way to query CWD in OpenBSD is
#include
char cwd[PATH_MAX];
On Thu, Nov 01, 2018 at 09:33:37AM +0100, Quentin Rameau wrote:
> Hello John,
>
> > + DIR* srcdir = opendir("/proc/self/task");
>
> Is that a Linux‐only patch?
>
The subject line would indicate thus. Funnily enough, *that* dependency
could be removed. What can't be removed is the dependency o
On Thu, Nov 01, 2018 at 08:46:06AM +0100, John Soros wrote:
> config.def.h | 6 +
> x.c | 76
> 2 files changed, 82 insertions(+)
>
> diff --git a/config.def.h b/config.def.h
> index 87ebdbb..265a4ff 100644
> --- a/config.def.h
>
Hi all,
I recently read the source code of sdhcp, and it does seem to be a nice
tool, but I couldn't help but notice a few things. Now, maybe I'm dense,
and none of the things I'm about to bring up matter for some reason, and
if so, that would be really cool. But some of these really do seem like
On Thu, Jul 19, 2018 at 03:49:10PM -0400, Cág wrote:
> If you take a look at README (https://git.suckless.org/sbase/tree/README),
> you'll find out completeness of the programs and missing arguments; out
> of all I only wonder why multi-column output of ls(1) is intentionally
> left out. On Plan 9
On Tue, Jul 17, 2018 at 07:28:25PM -0700, Eric Pruitt wrote:
> The suckless tools don't strictly follow POSIX. For example, sbase mv(1)
> and cp(1) don't support "-i". Furthermore it's pretty portable; find(1)
> on OpenBSD, FreeBSD, macOS and GNU find(1) all support using NUL bytes.
> It's the only
On Mon, May 21, 2018 at 07:12:46PM +0300, Adrian Grigore wrote:
> cc -lutf -o cat cat.o util.o
> cat.o: In function `main':
> cat.c:(.text+0x179): undefined reference to `chartorune'
> cat.c:(.text+0x1dd): undefined reference to `runetochar'
> cc: error: linker command failed with exit code 1 (use
On Thu, Oct 19, 2017 at 12:19:13PM +0200, Quentin Rameau wrote:
> Hello Jianzhong,
> > It's easy for keyboard selection, but for mouse selection, precise
> > positioning is a little bit difficult.
>
> I'd suggest you manage this outside of surf, either by training your
> mouse skills, or by stripp
On Sun, Sep 24, 2017 at 11:08:23PM -0400, Rendov Norra wrote:
> The archive shows silence and positivity on threads with go in the subject.
> Unfortunately gmane is unusable, so there's no way to search bodies.
I guess everyone here is just too jaded to respond to those threads
anymore. Anytime s
On Thu, Feb 02, 2017 at 07:20:34PM +0100, willy wrote:
> Hello everyone,
>
> While playing with sbase and musl, I encountered a strange bug: tar
> fails to extract bzip2 compressed archives when bzip2 is compiled
> against musl (I only tested static linking). Note that bzip2 uncompresses
> the fil
On Thu, Feb 02, 2017 at 06:45:49PM +0100, Mattias Andrée wrote:
> Greetings!
>
> I'm work on implementing make(1), and I have two questions for you:
>
> 1) What extensions do you think I shall implement? I think I will
>add $(foreach), $(shell), and I will definitely add $(SHELL).
>$(SHEL
On Fri, Dec 23, 2016 at 08:07:11PM +, Cág wrote:
> Hi,
>
> I was trying to create an archive with my gtk themes with
> "tar -c themes | xz > themes.tar.xz"
> and it says "tar:strlcpy: input string too long".
>
> The same happens without piping. BusyBox' tar did this
> fine.
>
> Also, when tr
On Wed, Oct 19, 2016 at 11:02:03AM +0100, Cág wrote:
> Hi,
>
> I have 16 colours in config.h from my palette, from 0 to 15,
> with 0 (black) being defaultbg and 7 (white) being defaultfg.
> My cursor is 12 (brblue) and reverse cursor is set 7 (white).
> However, in reality reverse cursor is 0 (bla
On Thu, Sep 22, 2016 at 08:04:44PM +0200, u...@netbeisser.de wrote:
> main.c:7:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
> ‘void’
> noreturn void __stack_chk_fail(void);
>
noreturn is already a return type (in as much as void is one, namely
syntactically), so remove the
On Sat, Sep 10, 2016 at 08:09:41PM +0200, Antoni V. wrote:
> Hi everyone from suckless.
>
> I wanted to know how you perform basic (and not so basic) statistics.
> There are programs like R, but they are generally too big and complex.
>
> I'm aware of desc [1] but it's missing a lot of useful too
On Thu, Sep 01, 2016 at 10:14:18PM +0200, FRIGN wrote:
> On Thu, 1 Sep 2016 21:53:21 +0200
> Sylvain BERTRAND wrote:
>
> Hey Sylvain,
>
> > Added IPv6 to lnanohttp and lnanosmtp:
>
> how do you expect anyone to use your software when you ship your own
> "libc" called "ulinux"? Why would I use t
On Sat, Jun 25, 2016 at 09:39:48PM +0100, Dimitris Papastamos wrote:
> Try echo `which smdev` > /proc/sys/kernel/hotplug
Erm... you want to add some more layers of evaluation? Why not just
this?
which smdev >/proc/sys/kernel/hotplug
JM2C,
Markus
On Mon, Jun 13, 2016 at 11:32:11PM +0200, Mattias Andrée wrote:
> Proofreading and suggestions is greatly appreciated!
>
Page 5: "Branches are incredibly cheap on modern CPUs." Not so! I wrote
a variety of CRC32 algorithms to benchmark (which will just measure my
personal CPU, I know, but it's be
On Thu, Jun 09, 2016 at 10:50:56PM +1100, Sylvain BERTRAND wrote:
> Hi,
>
> Introducing a new minimal and naive smtp server à la suckless: lnanosmtp
>
> https://github.com/sylware/lnanosmtp
> https://repo.or.cz/lnanosmtp.git
>
> cheers,
>
> --
> Sylvain
>
Dear Lord, it's been a while since I
On Wed, Jan 27, 2016 at 11:22:55PM +0100, Mattias Andrée wrote:
> Perhaps I should describe how the program works
> (although it is very simple.) The documents are
> compared just like of they were words, but with
> lines rather than characters, and only add and
> remove are valid changes, not subs
Hi all,
I have been using a small accessory application for dwm for a long time,
that I called dwmclock. What it did for the longest time was format the
load averages and the current time into a string, then set that as X11
root window name (dwm would thus display it in the bar window).
Today, I
On Wed, Jul 08, 2015 at 12:00:35PM +0200, Roberto E. Vargas Caballero wrote:
>
> > We are ignoring return value of dup(), so just remove it.
>
>
> From dup(3):
>
>The dup() system call creates a copy of the file descriptor oldfd,
>using the lowest-numbered unused descriptor
Sorry, forgot to include my work so far.
Ciao,
Markus
>From 96c65781f6d0d7b4f914156f520efe86ce193975 Mon Sep 17 00:00:00 2001
From: Markus Wichmann
Date: Sat, 11 Apr 2015 21:21:34 +0200
Subject: [PATCH] Implement most ICCCM rules for selection handling.
ICCCM mandates the use of real timesta
Hi all,
I recently read the ICCCM regarding selection handling and noticed we
are doing it wrong. Basically, we're supposed to provide real timestamps
in all the calls to selection functions and check for success.
Now, when requesting selection ownership, that's easy, because xsetsel()
is only ca
On Mon, Mar 30, 2015 at 08:33:48PM +0200, FRIGN wrote:
> On Mon, 30 Mar 2015 19:05:19 +0200
> Markus Wichmann wrote:
>
> > How about simply calling setlocale()? Or was that too simple? If the
> > user has set a non-UTF-8 locale and then uses UTF-8, that's on them!
On Mon, Mar 30, 2015 at 08:50:11AM -0700, Evan Gates wrote:
> The problem is using glibc's regex engine without first calling
> setlocale to ensure a UTF-8 locale. This causes it to remain in the
> C/POSIX locale. This will effect the same problem in all tools that
> use the libc's regex engine (ex
On Wed, Jan 14, 2015 at 10:42:07PM +0100, Markus Teich wrote:
> Heyho,
>
> since I was tired of fetching lots of unneeded html and js and images just to
> get a weather forecast, I wrote wego[0]. Comments welcome.
>
When I tried to run it, it would just print "Malformed response". I
added a line
On Sat, Jan 10, 2015 at 08:51:03PM +0100, FRIGN wrote:
> On Sat, 10 Jan 2015 02:52:09 +0100
> "Dmitrij D. Czarkoff" wrote:
>
> > > +#define UPPER "A-Z"
> > > +#define LOWER "a-z"
> > > +#define PUNCT "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~"
> >
> > These definitions hugely misrepresent corresponding
On Fri, Dec 26, 2014 at 10:24:27AM +0100, FRIGN wrote:
> no matter how big the codebase is, in my opinion, if you need tools like
> that there's something wrong with the code. And I've worked with really
> big codebases (good and bad) in my time.
I'm talking about stuff like musl: I don't want to
On Thu, Dec 25, 2014 at 04:02:35PM +0100, k...@shike2.com wrote:
> I don't use ctags. It's simple, if you use the correct code style you don't
> need aditional tools.
>
ctags tells me the place where all the functions are defined. It also
tells me where all the defines are and where all the struc
On Tue, Dec 23, 2014 at 08:42:18AM -0700, Anthony J. Bentley wrote:
> The point of this rule is not visual alignment. Width of the type doesn't
> matter; it is always one tab. The advantage is that you can find the
> declaration of member foo by grepping for ^Ifoo.
>
> Similarly, the "function nam
t spans two years isn't using the correct year for
> some of the months.
>
Found it!
>From 2476d80e7f4854382943368299b4e06a0c53db8c Mon Sep 17 00:00:00 2001
From: Markus Wichmann
Date: Mon, 15 Dec 2014 20:42:12 +0100
Subject: [PATCH] Fix problem with multi month display spanning a yea
On Mon, Nov 24, 2014 at 11:01:13AM +0100, koneu wrote:
> On November 24, 2014 6:35:51 AM CET, Markus Wichmann wrote:
> >that this asumption removes most overflow checking code.
>
> This behaviour is a pro, not a con, of GCC. If you rely on undefined
> behaviour to
&g
On Sun, Nov 23, 2014 at 10:20:44PM +, Henrique Lengler wrote:
> Hi,
>
> What is the situation of GCC, is it bloated?
Holy shit, yes! Ever tried to compile it?
And in the end, GCC has a lot of optimizers that make pedantic
asumptions about the code they compile. For instance, if i is of signe
On Sat, Nov 22, 2014 at 12:39:07AM +, Henrique Lengler wrote:
> Hi,
>
> I have a video player (mplayer) installed on my computer with a lot of
> codecs, so it is able to play a lot of videos formats.
> I don't like the idea of installing some plugins like gstreamer to play
> vide on on the bro
On Wed, Nov 19, 2014 at 12:19:15PM -0600, Josh Lawrence wrote:
> So for those of you that participate in the suckless community in some
> way: What do you run on your computer, and why?
>
Debian testing on my laptop and Windows on my PC. Because I use my
laptop for working and playing around wit
On Wed, Nov 19, 2014 at 11:12:43AM -0500, random...@fastmail.us wrote:
> On Wed, Nov 19, 2014, at 09:55, Dimitris Papastamos wrote:
> > Regarding your question on cp -f then the answer is not quite.
> >
> > cp -f will try to unlink the destination if it fails to open it for
> > whatever
> > reason
On Wed, Nov 19, 2014 at 07:58:28PM +0100, k...@shike2.com wrote:
> For long time I followed the rule of kernel style of not using typedef
> ever, but I changed it to the rule of using typedef only with structs
> and capital letter, and I can say that this last is far better; You
> get more readable
On Sun, Aug 17, 2014 at 08:56:45AM +0200, Christoph Lohmann wrote:
> You are wrong. The approach to shuffle everything into object‐liked
> structures is what makes software development ill. Stop it now.
It would be hard for that statement to be more wrong, because what makes
software developm
On Mon, Jun 30, 2014 at 08:54:52PM +0200, Markus Teich wrote:
> Heyho,
>
> since I did not find any suckless project regarding this issue, I would like
> to
> ask you guys for some feedback:
>
>
> unsigned char *msg;
> size_t msg_size;
> struct foo *msg_data;
> struct bar *msg_signature;
>
> m
On Tue, Jun 24, 2014 at 07:32:10PM +0200, FRIGN wrote:
> We are dealing with floats with at most 2 decimal places. I propose we
> just go for
>
> CEIL(x) ((int)(x) + ((x) > 0 && (int)(x) != (x)))
>
Well, if we know that much already then the easiest to read version
would be:
#define CEIL(x) ((i
Hi all,
Let us analyze the problem at hand: To display an image on screen, we
need to
- interpret the image file
- display the content on screen
So, having one program that reads some standardized input and displays
it on screen, while another program converts any given image file to
that standa
On Mon, Jun 02, 2014 at 06:41:45PM +0200, FRIGN wrote:
> Well, I prefer /etc/passwd, given it gives a false feeling of security
> using the shadow-file.
> In reality, it's a solution for a very unimportant issue.
> If your password is strong, having the hashes won't help any attacker.
> On the othe
On Sat, May 17, 2014 at 04:14:21PM +0200, Teodoro Santoni wrote:
> You're speaking like you're using some OS in which, during runtime,
> the code of that software written with a scripting language
> is passed through a dispatcher that recalls namespace sessions
> and, then, to a limited number of
On Thu, May 15, 2014 at 04:08:59PM +0200, Sylvain BERTRAND wrote:
> Hi,
>
> Unfortunately, libquvi on gentoo expects a system
> installed lua (with additional modules).
>
> I don't want this high level script language as a system
> dependency. I would prefer lua being packaged internally into
> l
1 - 100 of 132 matches
Mail list logo