all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* grep-find with Polish letters in Windows
@ 2010-09-14 11:02 Andrzej Skiba
  2010-09-14 19:21 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Andrzej Skiba @ 2010-09-14 11:02 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1411 bytes --]

Hi,
I have the following function to search my projects with grep-find:

(defun as/grep-project (project pattern)
  (interactive "sProject: \nsPattern: ")
    (grep-find (concat
                   "/usr/bin/find /cygdrive/c/projects/"
                   project
                   " -type f "
                   " -not -name \"*.svn-base\" "
                   "-and -not -name \"*.tmp\" "
                   "-and -not -name \"*.log\" -print0 "
                   "| xargs -0 -e grep -U -n -s -F \""
                   pattern
                   "\"")))

All works great until I try to search for a word with Polish letters (such
as ą, ś, ć, ł, ń etc.). The files are all utf-8. When I run the command
searching for string "Usuń" in project test I get the following output in
the grep buffer:

/usr/bin/find /cygdrive/c/projects/test -type f -not -name "*.svn-base" -and
-not -name "*.tmp" -and -not -name "*.log" -print0 | xargs -0 -e grep -U -n
-s -F "Usuń"
/usr/bin/bash: /usr/bin/find /cygdrive/c/projects/test -type f -not -name
"*.svn-base" -and -not -name "*.tmp" -and -not -name "*.log" -print0 | xargs
-0 -e grep -U -n -s -F "Usuń": No such file or directory

It runs fine with any input without Polish characters.

The find command works fine in a regular window shell as well as cygwin
bash.

Any ideas?

Thanks for any help, regards,

Andrzej Skiba

[-- Attachment #2: Type: text/html, Size: 2151 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-15  7:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-14 11:02 grep-find with Polish letters in Windows Andrzej Skiba
2010-09-14 19:21 ` Eli Zaretskii
2010-09-15  7:32   ` Andrzej Skiba

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.