home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 67,937 of 68,980   
   Anton Shepelev to All   
   Re: Character encoding of redirected out   
   31 Aug 22 02:05:34   
   
   From: anton.txt@gmail.com   
      
   JJ to Anton Shepelev:   
      
   > > Have you an idea why CHCP may not work? What is it   
   > > supposed to do?  Shall console programs query  the   
   > > effective  encoding  (as  set  by CHCP) and recode   
   > > their output themselves?   
   >   
   > I think the main reason is because all programs  are   
   > run  using the system code page, which is the global   
   > code page setting. IOTW, the system code page is the   
   > default code page for all programs.   
   >   
   > There's active code page which is a per-process code   
   > page setting. CMD's `CHCP`  command  simply  changes   
   > the  active code page. But that code page setting is   
   > not inherited to child processes.  Unlike  something   
   > like the working directory and environment variables   
   > which are (by default) inherited to child processes.   
   > [...]   
      
   Many thanks for the detailed and  humane  explanation,   
   JJ.  Very rarely these days one is honoured with a co-   
   herent answer of several fluent paragraphs.  The  mod-   
   ern  norm  is  a sloppy oneliner in a stinking chat or   
   social network.  Usenet must be  the  last  resort  of   
   truly educated people.   
      
   --   
   ()  ascii ribbon campaign -- against html e-mail   
   /\  http://preview.tinyurl.com/qcy6mjc [archived]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca