clip.exe ã使ãã¨WSLã®åºåãã¯ãªãããã¼ãã«ã³ãã¼ã§ããâ¦ï¼ å æ¥ã以ä¸ã®è¨äºãç®ã«ãã¾ããã Microsoftã®ä¸ã®äººç´ä¼ï¼ ãclip.exeããè¦ããã¨ã³ãã³ãã©ã¤ã³ãWSLã§ä¾¿å©ã ã - ãããã¾ã®æ - çªã®æ è¨äºã«ããããã«ã echo 'hogeã»ã' | iconv -t cp932 | /mnt/c/Windows/system32/clip.exe ã®ããã«å®è¡ããã¨æ¥æ¬èªãããç¨åº¦ã¡ããã¨æ±ãã¤ã¤ã³ãã¼ã§ãã¾ãã ãã ããä¸è¨ã® cp932 ã¨ããã®ã¯ Shift-JIS ã¨ã»ã¼åããªã®ã§ãæ±ããæåã¯UTF-8ãUTF-16ã«åã³ã¾ãããä¾ãã°çµµæåãðããªã©ãã³ãã¼ãããã¨ããã¨ã¨ã©ã¼ãèµ·ãã¾ãã æ¬è¨äºã§ã¯ãä¸è¨ã¸ã®å¯¾å¦ã¨ãããã«ä¾¿å©ã«ããããã®ã·ã§ã«è¨å®ã«ã¤ãã¦ãç´¹ä»ãã¾ãã çµè« å ã«çµè«ã§ãã以ä¸ã® clip é¢æ°ãWSLã® .bashr
{{#tags}}- {{label}}
{{/tags}}