* directory-files function - strange bug @ 2014-01-18 11:41 Deric Bytes 2014-01-18 11:44 ` Deric Bytes ` (2 more replies) 0 siblings, 3 replies; 14+ messages in thread From: Deric Bytes @ 2014-01-18 11:41 UTC (permalink / raw) To: help-gnu-emacs I have downloaded a web page and the filename had a circumflex (â) in it. On one machine I can run (directory-files "f:/cached-files/" nil nil t)) and it works. I have another machine using an identical setup (file structure, programs & versions). If I copy the directory to dropbox. I can run directory-files on both machines and it works. If I move the directory to the main hard drive but not the c: partition (i.e. f:/) it returns "" instead of directory with circumflex. If I then copy the directory to the c: drive it works. If I cut the circumflex character and paste it into emacs and then back into the folder name the code will work on drive f: Pasting the circumflex character into emacs gave different results for the copy on original machine (â) and new machine (â\200\223). ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: directory-files function - strange bug 2014-01-18 11:41 directory-files function - strange bug Deric Bytes @ 2014-01-18 11:44 ` Deric Bytes 2014-01-18 17:12 ` Eli Zaretskii [not found] ` <mailman.12257.1390065177.10748.help-gnu-emacs@gnu.org> 2 siblings, 0 replies; 14+ messages in thread From: Deric Bytes @ 2014-01-18 11:44 UTC (permalink / raw) To: help-gnu-emacs I am using: Windows 8.1 emacs -q GNU Emacs 24.3.1 (i386-mingw-nt6.2.9200) of 2013-03-17 on MARVIN ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: directory-files function - strange bug 2014-01-18 11:41 directory-files function - strange bug Deric Bytes 2014-01-18 11:44 ` Deric Bytes @ 2014-01-18 17:12 ` Eli Zaretskii [not found] ` <mailman.12257.1390065177.10748.help-gnu-emacs@gnu.org> 2 siblings, 0 replies; 14+ messages in thread From: Eli Zaretskii @ 2014-01-18 17:12 UTC (permalink / raw) To: help-gnu-emacs > Date: Sat, 18 Jan 2014 03:41:53 -0800 (PST) > From: Deric Bytes <dericbytes@gmail.com> > > I have downloaded a web page and the filename had a circumflex (â) in it. How did you download it, exactly? Also, what is your system codepage? (It's the value of w32-ansi-code-page.) ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <mailman.12257.1390065177.10748.help-gnu-emacs@gnu.org>]
* Re: directory-files function - strange bug [not found] ` <mailman.12257.1390065177.10748.help-gnu-emacs@gnu.org> @ 2014-01-18 17:49 ` Deric Bytes 2014-01-18 17:59 ` Eli Zaretskii [not found] ` <mailman.12263.1390068072.10748.help-gnu-emacs@gnu.org> 0 siblings, 2 replies; 14+ messages in thread From: Deric Bytes @ 2014-01-18 17:49 UTC (permalink / raw) To: help-gnu-emacs w32-ansi-code-page: 1252 I downloaded the file by: firefox -> save page as (the web pages are old web pages and are no longer online) ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: directory-files function - strange bug 2014-01-18 17:49 ` Deric Bytes @ 2014-01-18 17:59 ` Eli Zaretskii [not found] ` <mailman.12263.1390068072.10748.help-gnu-emacs@gnu.org> 1 sibling, 0 replies; 14+ messages in thread From: Eli Zaretskii @ 2014-01-18 17:59 UTC (permalink / raw) To: help-gnu-emacs > Date: Sat, 18 Jan 2014 09:49:18 -0800 (PST) > From: Deric Bytes <dericbytes@gmail.com> > Injection-Date: Sat, 18 Jan 2014 17:49:19 +0000 > > w32-ansi-code-page: 1252 > > I downloaded the file by: firefox -> save page as (the web pages are old web pages and are no longer online) I suspect that the original file had a UTF-8 encoded characters it is name, perhaps characters not supported by codepage 1252. Or maybe it's a Firefox bug. ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <mailman.12263.1390068072.10748.help-gnu-emacs@gnu.org>]
* Re: directory-files function - strange bug [not found] ` <mailman.12263.1390068072.10748.help-gnu-emacs@gnu.org> @ 2014-01-18 18:37 ` Deric Bytes 2014-01-18 18:49 ` Eli Zaretskii [not found] ` <mailman.12267.1390070984.10748.help-gnu-emacs@gnu.org> 0 siblings, 2 replies; 14+ messages in thread From: Deric Bytes @ 2014-01-18 18:37 UTC (permalink / raw) To: help-gnu-emacs The code worked on my other machine which used 1252. Also it ran when the file was on the C: drive but not other positions. As mentioned earlier I pasted the foreign accent into emacs and pasted back into the filename and it worked, so obviously some conversion of the character took place. When I viewed the file in cygwin the â was shown as â??. What is strange is that it worked on my c: drive and not my f: drive. I returned it to my c: drive to test if it had undergone a conversion but it still worked on the c: drive. I have changed all files with accents, as I do not generally use them. I can get back to working again. thanks for your help. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: directory-files function - strange bug 2014-01-18 18:37 ` Deric Bytes @ 2014-01-18 18:49 ` Eli Zaretskii [not found] ` <mailman.12267.1390070984.10748.help-gnu-emacs@gnu.org> 1 sibling, 0 replies; 14+ messages in thread From: Eli Zaretskii @ 2014-01-18 18:49 UTC (permalink / raw) To: help-gnu-emacs > Date: Sat, 18 Jan 2014 10:37:05 -0800 (PST) > From: Deric Bytes <dericbytes@gmail.com> > > When I viewed the file in cygwin the â was shown as â??. Cygwin uses Unicode (a.k.a. "wide") APIs to communicate file names to the system, so it can support file names outside of the current codepage. So will Emacs in the next version. > What is strange is that it worked on my c: drive and not my f: drive. I suspect they have different filesystems, like NTFS vs FAT32. ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <mailman.12267.1390070984.10748.help-gnu-emacs@gnu.org>]
* Re: directory-files function - strange bug [not found] ` <mailman.12267.1390070984.10748.help-gnu-emacs@gnu.org> @ 2014-01-19 1:41 ` Deric Bytes 2014-01-19 3:47 ` Eli Zaretskii [not found] ` <mailman.12289.1390103243.10748.help-gnu-emacs@gnu.org> 0 siblings, 2 replies; 14+ messages in thread From: Deric Bytes @ 2014-01-19 1:41 UTC (permalink / raw) To: help-gnu-emacs > Cygwin uses Unicode (a.k.a. "wide") APIs to communicate file names to > the system, so it can support file names outside of the current > codepage. So will Emacs in the next version. thats good to know > I suspect they have different filesystems, like NTFS vs FAT32. I had suspected that. So I created another NFTS partition. Moved the files there and it still did not work ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: directory-files function - strange bug 2014-01-19 1:41 ` Deric Bytes @ 2014-01-19 3:47 ` Eli Zaretskii [not found] ` <mailman.12289.1390103243.10748.help-gnu-emacs@gnu.org> 1 sibling, 0 replies; 14+ messages in thread From: Eli Zaretskii @ 2014-01-19 3:47 UTC (permalink / raw) To: help-gnu-emacs > Date: Sat, 18 Jan 2014 17:41:57 -0800 (PST) > From: Deric Bytes <dericbytes@gmail.com> > > > I suspect they have different filesystems, like NTFS vs FAT32. > > I had suspected that. So I created another NFTS partition. Moved the files there and it still did not work If you want to dig into this further, please tell what web pages were those. ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <mailman.12289.1390103243.10748.help-gnu-emacs@gnu.org>]
* Re: directory-files function - strange bug [not found] ` <mailman.12289.1390103243.10748.help-gnu-emacs@gnu.org> @ 2014-01-19 12:51 ` Deric Bytes 2014-01-19 15:49 ` Eli Zaretskii [not found] ` <mailman.12317.1390146590.10748.help-gnu-emacs@gnu.org> 0 siblings, 2 replies; 14+ messages in thread From: Deric Bytes @ 2014-01-19 12:51 UTC (permalink / raw) To: help-gnu-emacs If you send me an email I can share a link to my dropbox. I know this method retains the troublesome filename. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: directory-files function - strange bug 2014-01-19 12:51 ` Deric Bytes @ 2014-01-19 15:49 ` Eli Zaretskii [not found] ` <mailman.12317.1390146590.10748.help-gnu-emacs@gnu.org> 1 sibling, 0 replies; 14+ messages in thread From: Eli Zaretskii @ 2014-01-19 15:49 UTC (permalink / raw) To: help-gnu-emacs > Date: Sun, 19 Jan 2014 04:51:30 -0800 (PST) > From: Deric Bytes <dericbytes@gmail.com> > > If you send me an email I can share a link to my dropbox. I know this method retains the troublesome filename. Is there no way to download these pages except via Dropbox? I'd prefer not to open backdoors on my machine, thank you. ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <mailman.12317.1390146590.10748.help-gnu-emacs@gnu.org>]
* Re: directory-files function - strange bug [not found] ` <mailman.12317.1390146590.10748.help-gnu-emacs@gnu.org> @ 2014-01-22 2:44 ` Deric Bytes 2014-01-22 3:49 ` Eli Zaretskii [not found] ` <mailman.12547.1390362586.10748.help-gnu-emacs@gnu.org> 0 siblings, 2 replies; 14+ messages in thread From: Deric Bytes @ 2014-01-22 2:44 UTC (permalink / raw) To: help-gnu-emacs I think the dropobox link takes you to a webpage where you can download the file. I don't think you have to install anything... Can you think of a better way? ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: directory-files function - strange bug 2014-01-22 2:44 ` Deric Bytes @ 2014-01-22 3:49 ` Eli Zaretskii [not found] ` <mailman.12547.1390362586.10748.help-gnu-emacs@gnu.org> 1 sibling, 0 replies; 14+ messages in thread From: Eli Zaretskii @ 2014-01-22 3:49 UTC (permalink / raw) To: help-gnu-emacs > Date: Tue, 21 Jan 2014 18:44:55 -0800 (PST) > From: Deric Bytes <dericbytes@gmail.com> > > I think the dropobox link takes you to a webpage where you can download the file. I don't think you have to install anything... Can you think of a better way? Can't you just provide the URL where you downloaded those pages? ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <mailman.12547.1390362586.10748.help-gnu-emacs@gnu.org>]
* Re: directory-files function - strange bug [not found] ` <mailman.12547.1390362586.10748.help-gnu-emacs@gnu.org> @ 2014-01-22 4:21 ` Deric Bytes 0 siblings, 0 replies; 14+ messages in thread From: Deric Bytes @ 2014-01-22 4:21 UTC (permalink / raw) To: help-gnu-emacs As mentioned earlier the pages are not available online anymore. The earliest cached page I have is 3 years old. I had a brief look for sites that archived these web pages, also for new sites that used foreign characters but I did not find any. ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2014-01-22 4:21 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-01-18 11:41 directory-files function - strange bug Deric Bytes 2014-01-18 11:44 ` Deric Bytes 2014-01-18 17:12 ` Eli Zaretskii [not found] ` <mailman.12257.1390065177.10748.help-gnu-emacs@gnu.org> 2014-01-18 17:49 ` Deric Bytes 2014-01-18 17:59 ` Eli Zaretskii [not found] ` <mailman.12263.1390068072.10748.help-gnu-emacs@gnu.org> 2014-01-18 18:37 ` Deric Bytes 2014-01-18 18:49 ` Eli Zaretskii [not found] ` <mailman.12267.1390070984.10748.help-gnu-emacs@gnu.org> 2014-01-19 1:41 ` Deric Bytes 2014-01-19 3:47 ` Eli Zaretskii [not found] ` <mailman.12289.1390103243.10748.help-gnu-emacs@gnu.org> 2014-01-19 12:51 ` Deric Bytes 2014-01-19 15:49 ` Eli Zaretskii [not found] ` <mailman.12317.1390146590.10748.help-gnu-emacs@gnu.org> 2014-01-22 2:44 ` Deric Bytes 2014-01-22 3:49 ` Eli Zaretskii [not found] ` <mailman.12547.1390362586.10748.help-gnu-emacs@gnu.org> 2014-01-22 4:21 ` Deric Bytes
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).