Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sed scripts break due to posix locale problems #3051

Closed
vicuna opened this issue Nov 23, 2001 · 2 comments
Closed

sed scripts break due to posix locale problems #3051

vicuna opened this issue Nov 23, 2001 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Nov 23, 2001

Original bug ID: 651
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: James Leifer
Version: 1 - 3.03 alpha
OS: Mandrake 8.1
Submission from: oto.inria.fr (192.93.2.2)

Problem:

cd tools
make dumpobj

doesn't work.

The reason is that the sed script used makes use of character ranges, such as
[A-Z],which are no longer well-supported by the regexp libraries since the
introduction of posix compliance. There are now a whole series of symbolic
names for ranges:

new old
[:upper:] A-Z
[:lower:] a-z
etc...

For fun, try the following on your machine:

$ echo "A" | grep -e "[a-z]"

Mine returns:

A

Some pointers are at:

http://mandrakeforum.com/article.php?sid=1093&lang=en

-James Leifer

@vicuna
Copy link
Author

vicuna commented Nov 30, 2001

Comment author: administrator

Problem:
cd tools
make dumpobj
doesn't work.

The reason is that the sed script used makes use of character ranges, such as
[A-Z],which are no longer well-supported by the regexp libraries since the
introduction of posix compliance. There are now a whole series of symbolic
names for ranges:
new old
[:upper:] A-Z
[:lower:] a-z
etc...

The problem is that older Unixes don't recognize the POSIX symbolic
names :-)

Could you try the following patch and tell me if it fixes the problem?

Thanks,

  • Xavier

Index: tools/Makefile

RCS file: /net/pauillac/caml/repository/csl/tools/Makefile,v
retrieving revision 1.41
diff -u -r1.41 Makefile
--- Makefile 2001/10/30 09:31:00 1.41
+++ Makefile 2001/11/30 13:23:53
@@ -179,6 +179,7 @@
rm -f dumpobj

opnames.ml: ../byterun/instruct.h

  •   unset LC_ALL LC_CTYPE LC_COLLATE LANG; \
      sed -e '/\/\*/d' \
           -e '/^#/d' \
           -e 's/enum \(.*\) {/let names_of_\1 = [|/' \
    

@vicuna
Copy link
Author

vicuna commented Dec 7, 2001

Comment author: administrator

Fixed (by turning i18n off) by XL 2001-12-07.

@vicuna vicuna closed this as completed Dec 7, 2001
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant