Categories
Terminal Troubleshooting

Fixing sed error “undefined label” and “invalid command code” on MacOS

The life of a programmer is hard. There are moments that we encounter bugs and have absolutely no idea why it’s happening. These occasions challenge our troubleshooting skills. Let’s look at a scenario with sed where the same line of code which works on MacOS won’t work on Linux and vice-versa (I’m testing on Ubuntu) […]

Categories
Terminal Troubleshooting

Fixing “Warning: Failed to set locale category…”

You often get this rather annoying warning in your terminal on a freshly installed operating system (or each time until you decide it’s annoying enough to be fixed). For example when you are using wget, your terminal will serve you these warnings. You have a configuration issue with your computer’s or server’s locale. We’ll tackle […]