Skip to Main Content
IBM Power Ideas Portal


This portal is to open public enhancement requests against IBM Power Systems products, including IBM i. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Delivered
Workspace AIX
Created by Guest
Created on Jul 31, 2019

tr "[a-z]" "[A-Z]"? Support Regexp Adaptation Under Heterogeneous Collation Rules

1. A regex pattern is used by a regular expression engine for attempting to match in input text. A pattern consists of one or more character literals, operators, or constructs.

2. In regex, the character classes in regular expressions are an extremely useful and widespread feature. For instance, regular expressions are used in search engines, search and replace dialogs of word processors and text editors, in text processing utilities such as sed and AWK and in lexical analysis. Many programming languages provide regex capabilities, built-in or via libraries.

3. A lot regular expression patterns depends on the collation rules. And, collation rules are language and locale sensitive.

5. Regular Expression Patterns may be broken under Heterogeneous Collation Rules in different locale environment. For instance, a popular regex pattern [a-z] [A_Z], a string of consecutive ASCII characters are represented as a hyphen-separated range, may NOT operated properly.

Idea priority High
  • Guest
    Reply
    |
    Jun 14, 2021

    .aix72V
    AIX 7.2 TL 5

  • Guest
    Reply
    |
    Aug 1, 2019

    Hi Walter, can you check if you installed en_US.UTF-8 locale or not?
    run
    export LANG=en_US.UTF-8

    than, run
    locale

    and then check if you got following locale environment changes, like this
    [suliu]> locale
    LANG=en_US.UTF-8
    LC_COLLATE="en_US.UTF-8"
    LC_CTYPE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_ALL=
    diyang:/home/suliu

  • Guest
    Reply
    |
    Aug 1, 2019

    I do not get that result.. here is the output on our system

    raven[root] oslevel
    7.1.0.0
    raven[root] echo abcdefghijklmnopqrstuvwxyz | tr "[a-z]" "[A-Z]"
    ABCDEFGHIJKLMNOPQRSTUVWXYZ
    raven[root] LANG=en_US.UTF-8; echo abcdefghijklmnopqrstuvwxyz | tr "[a-z]" "[A-Z]"
    ABCDEFGHIJKLMNOPQRSTUVWXYZ
    raven[root] LANG=en_US.UTF-8; echo abcdefghijklmnopqrstuvwxyz | tr "[a-z]" "[A-Z]" | od -x
    0000000 4142 4344 4546 4748 494a 4b4c 4d4e 4f50
    0000020 5152 5354 5556 5758 595a 0a00
    0000033