Case-insensitive C locale
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm trying to create a custom locale for use with the LC_COLLATE variable which sorts files just like the C locale, with the only exception that it sorts case-insensitively. I need this because I have lots of files with special (Japanese) characters in their names which just get scattered around randomly across the folder when using the en_US locale for LC_COLLATE. Setting LC_COLLATE to C fixes this issue, however it introduces case-sensitivity which can get annoying when downloading files from the Internet which were named on the assumption that case wouldn't matter.
It was easy enough to create a custom locale based on the C locale which sorts AaBbCc... instead of ABC...abc... and this does alleviate the issue somewhat, but I can't figure out how to get it to treat uppercase and lowercase Latin letters as the same character while sorting as it does with the en_US locale (based on what I'm seeing in the iso14651_t1_common file it does look more complicated than I'd hope).
(I know there are file managers which offer the option to ignore case but I'd prefer not having to ditch a program just because it lacks this option (as many do).)
sort locale
New contributor
add a comment |Â
up vote
0
down vote
favorite
I'm trying to create a custom locale for use with the LC_COLLATE variable which sorts files just like the C locale, with the only exception that it sorts case-insensitively. I need this because I have lots of files with special (Japanese) characters in their names which just get scattered around randomly across the folder when using the en_US locale for LC_COLLATE. Setting LC_COLLATE to C fixes this issue, however it introduces case-sensitivity which can get annoying when downloading files from the Internet which were named on the assumption that case wouldn't matter.
It was easy enough to create a custom locale based on the C locale which sorts AaBbCc... instead of ABC...abc... and this does alleviate the issue somewhat, but I can't figure out how to get it to treat uppercase and lowercase Latin letters as the same character while sorting as it does with the en_US locale (based on what I'm seeing in the iso14651_t1_common file it does look more complicated than I'd hope).
(I know there are file managers which offer the option to ignore case but I'd prefer not having to ditch a program just because it lacks this option (as many do).)
sort locale
New contributor
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to create a custom locale for use with the LC_COLLATE variable which sorts files just like the C locale, with the only exception that it sorts case-insensitively. I need this because I have lots of files with special (Japanese) characters in their names which just get scattered around randomly across the folder when using the en_US locale for LC_COLLATE. Setting LC_COLLATE to C fixes this issue, however it introduces case-sensitivity which can get annoying when downloading files from the Internet which were named on the assumption that case wouldn't matter.
It was easy enough to create a custom locale based on the C locale which sorts AaBbCc... instead of ABC...abc... and this does alleviate the issue somewhat, but I can't figure out how to get it to treat uppercase and lowercase Latin letters as the same character while sorting as it does with the en_US locale (based on what I'm seeing in the iso14651_t1_common file it does look more complicated than I'd hope).
(I know there are file managers which offer the option to ignore case but I'd prefer not having to ditch a program just because it lacks this option (as many do).)
sort locale
New contributor
I'm trying to create a custom locale for use with the LC_COLLATE variable which sorts files just like the C locale, with the only exception that it sorts case-insensitively. I need this because I have lots of files with special (Japanese) characters in their names which just get scattered around randomly across the folder when using the en_US locale for LC_COLLATE. Setting LC_COLLATE to C fixes this issue, however it introduces case-sensitivity which can get annoying when downloading files from the Internet which were named on the assumption that case wouldn't matter.
It was easy enough to create a custom locale based on the C locale which sorts AaBbCc... instead of ABC...abc... and this does alleviate the issue somewhat, but I can't figure out how to get it to treat uppercase and lowercase Latin letters as the same character while sorting as it does with the en_US locale (based on what I'm seeing in the iso14651_t1_common file it does look more complicated than I'd hope).
(I know there are file managers which offer the option to ignore case but I'd prefer not having to ditch a program just because it lacks this option (as many do).)
sort locale
sort locale
New contributor
New contributor
New contributor
asked 4 mins ago
konira11
1
1
New contributor
New contributor
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
konira11 is a new contributor. Be nice, and check out our Code of Conduct.
konira11 is a new contributor. Be nice, and check out our Code of Conduct.
konira11 is a new contributor. Be nice, and check out our Code of Conduct.
konira11 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475156%2fcase-insensitive-c-locale%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password