Skip to content

Commit

Permalink
Attempt to resolve locale issue in grep
Browse files Browse the repository at this point in the history
  • Loading branch information
szapp committed May 12, 2024
1 parent 8abed54 commit 40e94d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getAddress.bat
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ IF /I NOT "%fileextn%"==".asm" ECHO Incorrect file extension. *.asm expected.&&
IF NOT EXIST %filefull% ECHO File '%filefull%' not found.&& EXIT /B 2

:: Grep addresses from org decorator
set LC_ALL="en_US.utf8"
set LC_ALL=C
type %filefull% ^
| grep -iP "[[:blank:]]*org[[:blank:]]+(\w+\()?[[:blank:]]*((0x)?[[:xdigit:]]{6,8})" ^
| grep -ioP "(?:0x)?[[:xdigit:]]{6,8}" ^
Expand Down

0 comments on commit 40e94d9

Please sign in to comment.