Bug 270897

Summary: LC_COLLATE is setting character range
Product: Other Reporter: dvsingla.28
Component: SpamAssignee: Mateusz Piotrowski <0mp>
Status: Closed Not Accepted    
Severity: Affects Some People CC: 0mp, prakash01, wekecog515
Priority: ---    
Version: unspecified   
Hardware: arm64   
OS: Any   

Description dvsingla.28 2023-04-17 11:57:49 UTC
I'm new to this platform and not sure whether what I'm reporting is a bug or not. But this is the issue I'm encountering.

I had a special character(Â) which gave error while using sed.

```
echo $'H\xc3\x82Bnc' | sed -E 's/[A-Z]*/`&`/g'
sed: RE error: illegal byte sequence

$ locale
LANG=""
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=
```

Now if I set LC_COLLATE, then the command works.

```
echo $'H\xc3\x82Bnc' | LC_COLLATE="en_US.UTF-8" sed -E 's/[A-Z]*/`&`/g'
`HÂB`n``c``

```

Is LC_COLLATE affecting the character range. Why after LC_COLLATE was set, did the code produce no error of illegal byte sequence? I'm using FreeBSD on mac.
Comment 1 Mateusz Piotrowski freebsd_committer freebsd_triage 2023-04-17 12:13:32 UTC
What do you mean by FreeBSD on Mac? What FreeBSD version are you using (you can check that with `uname -a`)?
Comment 2 dvsingla.28 2023-04-17 12:44:03 UTC
`uname -a` gives "Darwin AS-MAC-0362 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103 arm64"

`grep --version` gives "grep (BSD grep, GNU compatible) 2.6.0-FreeBSD"
Comment 3 dvsingla.28 2023-04-17 12:44:44 UTC
`uname -a` gives "Darwin AS-MAC-0362 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103 arm64"

`grep --version` gives "grep (BSD grep, GNU compatible) 2.6.0-FreeBSD"
Comment 4 Mateusz Piotrowski freebsd_committer freebsd_triage 2023-04-17 13:01:45 UTC
Hey, thanks a lot for the clarification.

It seems like you are running a macOS. I can confirm that I can reproduce your error on macOS.

Unfortunately, this is not the right bug tracker for reporting this problem. It is true that macOS has some command-line tools that were imported from FreeBSD. However, any bugs you encounter with macOS' base system command-line utilities should be reported by to Apple. The FreeBSD Project cannot fix any errors in Apple's code base.
Comment 5 wekecog 2023-08-21 05:22:44 UTC
Find the top rated knee replacement surgeons in Delhi NCR for fast recovery and effective pain relief after knee replacement surgery. Get expert advice and book an appointment with the best orthopedic surgeons in Delhi specializing in knee replacement.
https://www.asicclinic.com/total-knee-replacement-in-delhi.php
Comment 6 prakash 2024-02-15 07:54:36 UTC
Are you facing issues with your HP devices? Look no further! Our dedicated tech support team at Contact Phone Number is here to assist you in resolving a range of problems. If you're encountering the frustrating "HP toucHPad not working" error, rest assured that our experts have the solution to get it functioning seamlessly again. Additionally, if you find your "HP keyboard is locked," our skilled professionals can troubleshoot the issue efficiently, ensuring your keyboard works effortlessly. For those grappling with connectivity problems on their HP wireless printer, our comprehensive support services at https://www.contact-phone-number.com/hp-support/ are tailored to address and resolve any issues you may encounter. Trust us to provide reliable and prompt assistance for all your HP device-related concerns. Don't let technical glitches disrupt your experience – reach out to Contact Phone Number for expert assistance today!
Comment 7 prakash 2024-02-15 08:00:37 UTC
Empowering Your Tech Experience: Expert McAfee Support Services
As a leading provider of tech services, our team at Antivirus Number understands the importance of a seamless digital experience. Are you constantly bothered by pesky pop-ups from McAfee, disrupting your workflow? Fret not! Our dedicated service at https://www.antivirus-number.com/how-to-stop-mcafee-popups/ offers comprehensive solutions on "how to stop McAfee pop-ups." With our expertise, you can regain control over your device and enjoy uninterrupted browsing. For those looking to enhance their digital security with McAfee, our support team at https://www.antivirus-number.com/mcafee-support/ is ready to guide you through the smooth "McAfee download" process. We take pride in not only providing solutions but also ensuring that your McAfee experience is hassle-free from start to finish. Additionally, if you ever find the need to optimize your system by "uninstalling McAfee WebAdvisor," our service at https://www.antivirus-number.com/how-to-remove-mcafee-webadvisor/ is at your disposal. Trust Antivirus Number for all your tech needs, and let us redefine your digital journey with our reliable and efficient services.
Comment 8 prakash 2024-02-15 08:58:30 UTC
 Expert Ring Doorbell Support Services to Resolve Installation, Connectivity, and Performance Issues
As a seasoned SEO executive at Contact Support Team, I am thrilled to introduce our top-notch tech services tailored to address various concerns related to Ring Doorbell. Whether you're seeking Ring Doorbell help, struggling with Ring Doorbell installation, dealing with a stopped Ring Doorbell, facing offline Ring Doorbell issues, or wondering how to connect Ring Doorbell to wifi, our team is here to provide comprehensive assistance. Navigating the complexities of technology can be challenging, but with our dedicated experts at https://www.contactsupportteam.com, you can trust us to deliver prompt solutions to ensure your Ring Doorbell functions seamlessly. Our Ring Doorbell support services encompass troubleshooting, setup guidance, and resolving connectivity issues. Experience hassle-free Ring Doorbell usage with Contact Support Team – your go-to destination for reliable and efficient tech assistance.
Comment 9 prakash 2024-02-15 09:02:53 UTC
 Resolving Facebook Woes: Expert Tech Support for Contact and Login Issues, Scrolling Problems, and Hacked Accounts
As a dedicated tech service provider, we understand the frustrations that users may encounter while navigating the ever-evolving world of social media. At Contact Help Center, we specialize in addressing a variety of Facebook-related concerns to ensure a seamless experience for our users. If you find yourself facing "contact Facebook" issues, worry not – our skilled team is equipped to provide prompt assistance through our dedicated page at https://www.contacthelpcenter.com/facebook-support/. Additionally, if you are grappling with the perplexing "facebook login code problem," our experts can guide you through the resolution process at https://www.contacthelpcenter.com/facebook-login-issues/. For those experiencing the vexing "facebook app scrolling problem," our team is ready to troubleshoot and enhance your scrolling experience through our dedicated page at https://www.contacthelpcenter.com/facebook-scrolling-problem/. Wondering "why is Facebook not working"? Explore solutions and insights on our comprehensive support page at https://www.contacthelpcenter.com/facebook-not-working/. Lastly, if you suspect your account has been compromised, our dedicated page at https://www.contacthelpcenter.com/facebook-account-hacked/ offers essential assistance and recovery steps to reclaim control. Trust Contact Help Center for expert guidance and solutions to all your Facebook-related concerns.