gavinhoward / bc

An implementation of the POSIX bc calculator with GNU extensions and dc, moved away from GitHub. Finished, but well-maintained.
https://git.gavinhoward.com/gavin/bc
Other
145 stars 29 forks source link

Difference between --localedir and NLSPATH #58

Closed firasuke closed 1 year ago

firasuke commented 1 year ago

As in the title, what's the difference between the two? and why is --localedir only mentioned in build.md and not when running ./configure --help?

gavinhoward commented 1 year ago

So I originally added --localedir because it was one of the standard GNU configure options. This was before I understood that GNU does not use POSIX locales.

--localedir does not make sense when a program is using POSIX locales, so I've removed references to LOCALEDIR and friends from everything.

Does that answer your question?

firasuke commented 1 year ago

So --localedir shouldn't be used?

gavinhoward commented 1 year ago

You are correct; it should not be used.

It wasn't used to change anything in the Makefile, so it merely just didn't do anything. With the change I made, the configure script should more give an error if it is given.

firasuke commented 1 year ago

Ok cool, thanks for clarifying. Closing..